Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setting DF failed for both IPv4 and IPv6 #327

Closed
engama opened this issue May 15, 2022 · 5 comments
Closed

setting DF failed for both IPv4 and IPv6 #327

engama opened this issue May 15, 2022 · 5 comments

Comments

@engama
Copy link

engama commented May 15, 2022

我使用hysteria最新版core,然后套用V2RAYN UI,设置好后,报下述错误,请问是怎么回事?
配置成功
[] [Custom] hyvultr-american
启动服务(2022/5/15 16:14:17)...
2022-05-15T16:14:17+08:00�[36m [INFO] [config:{Server:v.xzmzddf.tk:17791 Protocol:wechat-video Up: UpMbps:12 Down: DownMbps:62 Retry:3 RetryInterval:3 SOCKS5:{Listen:127.0.0.1:10808 Timeout:300 DisableUDP:false User: Password:} HTTP:{Listen:127.0.0.1:10809 Timeout:300 User: Password: Cert: Key:} TUN:{Name: Timeout:0 Address: Gateway: Mask: DNS:[] Persist:false} TCPRelays:[] TCPRelay:{Listen: Remote: Timeout:0} UDPRelays:[] UDPRelay:{Listen: Remote: Timeout:0} TCPTProxy:{Listen: Timeout:0} UDPTProxy:{Listen: Timeout:0} ACL:acl/routes.acl MMDB:acl/Country.mmdb Obfs: Auth:[] AuthString:qwqw ALPN:h3 ServerName:v.xzmzddf.tk Insecure:false CustomCA: ReceiveWindowConn:6291456 ReceiveWindow:25165824 DisableMTUDiscovery:true Resolver:119.29.29.29:53 ResolvePreference:}] �[0mClient configuration loaded
2022-05-15T16:14:17+08:00�[31m [ERRO] [error:setting DF failed for both IPv4 and IPv6] �[0mFailed to initialize client
2022-05-15T16:14:17+08:00�[36m [INFO] [retry:1] [interval:3] �[0mRetrying...
2022-05-15T16:14:20+08:00�[31m [ERRO] [error:setting DF failed for both IPv4 and IPv6] �[0mFailed to initialize client
2022-05-15T16:14:20+08:00�[36m [INFO] [retry:2] [interval:3] �[0mRetrying...
2022-05-15T16:14:23+08:00�[31m [ERRO] [error:setting DF failed for both IPv4 and IPv6] �[0mFailed to initialize client
2022-05-15T16:14:23+08:00�[36m [INFO] [retry:3] [interval:3] �[0mRetrying...
2022-05-15T16:14:26+08:00�[31m [ERRO] [error:setting DF failed for both IPv4 and IPv6] �[0mFailed to initialize client
2022-05-15T16:14:26+08:00�[31m [FATA] �[0mOut of retries, exiting...

客户端json如下
{
"server": "v.xzmzddf.tk:17791",
"protocol": "wechat-video",
"up_mbps": 12,
"down_mbps": 62,
"http": {
"listen": "127.0.0.1:10809",
"timeout" : 300,
"disable_udp": false
},
"socks5": {
"listen": "127.0.0.1:10808",
"timeout": 300,
"disable_udp": false
},
"alpn": "h3",
"acl": "acl/routes.acl",
"mmdb": "acl/Country.mmdb",
"auth_str": "qwqw",
"server_name": "v.xzmzddf.tk",
"insecure": false,
"recv_window_conn": 6291456,
"recv_window": 25165824,
"disable_mtu_discovery": true,
"resolver": "119.29.29.29:53",
"retry": 3,
"retry_interval": 3
}

@haruue
Copy link
Collaborator

haruue commented May 15, 2022

在 Windows 7 上复现了这个问题, 你使用的是 Windows 7 吗?

@haruue
Copy link
Collaborator

haruue commented May 15, 2022

2022-05-15T22:16:23+08:00�[31m [ERRO] [error:setting DF failed for both IPv4 and IPv6: An unknown, invalid, or unsupported option or level was specified in a getsockopt or setsockopt call., %!w(syscall.Errno=10042)] �[0mFailed to initialize client

https://github.com/tobyxdd/quic-go/blob/v0.27.0-mod/sys_conn_df_windows.go#L46-L48
minor modified for errDFIPv4 & errDFIPv6 logging

        case errDFIPv4 != nil && errDFIPv6 != nil:
        return fmt.Errorf("setting DF failed for both IPv4 and IPv6: %w, %w", errDFIPv4, errDFIPv6)
        }

@tobyxdd
Copy link
Collaborator

tobyxdd commented May 16, 2022

Fixed by b36a4d0

@tobyxdd tobyxdd closed this as completed May 16, 2022
@engama
Copy link
Author

engama commented May 16, 2022

@haruue 是的,我用的是Windows 7的操作系统。这个是我系统的问题还是?我后续应该怎么解决这个问题呢?我是菜鸟。麻烦大神指点迷津。

@haruue
Copy link
Collaborator

haruue commented May 16, 2022

@engama: 这个是我系统的问题还是?我后续应该怎么解决这个问题呢?

这是当前版本 Hysteria 的 bug , 因此 Hysteria 的当前版本暂时无法在 Windows 7 上使用。
此 bug 将于下一版本的 Hysteria 修复。
在新版本发布之前,你也可以尝试使用旧版本 Hysteria (经过测试 v1.0.2 可以在 Windows 7 上正常使用)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants