Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

ipv6 is not supported #147

Closed
JcobCN opened this issue Jun 1, 2023 · 2 comments
Closed

ipv6 is not supported #147

JcobCN opened this issue Jun 1, 2023 · 2 comments

Comments

@JcobCN
Copy link

JcobCN commented Jun 1, 2023

vps的ipv4被block了,但是用warp获得了ipv6,curl openai的接口也是走ipv6的。不知为什么这个程序一直是ipv4优先?

我查了tls_client的源码,里面的Dial的network设置的是"tcp",按道理是优先ipv6的。

@JcobCN
Copy link
Author

JcobCN commented Jun 1, 2023

我编译了强制ipv6的二进程,需要的朋友可以自取
linux-amd64 https://github.com/JcobCN/go-chatgpt-api/releases/download/ipv6/i6

@JcobCN
Copy link
Author

JcobCN commented Jun 1, 2023

golang/go#54928 这里好像说官方已经解决了,但我最新版本的go还是遇到。

编译环境:go version go1.20.4 linux/amd64

Repository owner locked and limited conversation to collaborators Jun 1, 2023
@linweiyuan linweiyuan converted this issue into discussion #149 Jun 1, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant