[GH-ISSUE #3571] frpc以wss方式连接ipv6的frps服务不正常 #2850

Closed
opened 2026-05-05 13:50:44 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @qiangbro on GitHub (Aug 12, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3571

Bug Description

版本:frp_0.51.2_windows_amd64
windows端frpc连接ipv4的wss一切正常,
把地址改成ipv6,不论ipv6地址带不带方括号都报错

server_addr = ----------------ipv6----------------
server_port = 5691
protocol = wss

本地frpc报错
[W] [service.go:133] login to server failed: parse "ws://----------------ipv6----------------/~!frp": invalid port ":3e00" after host

同时服务端frpc报错,服务端frpc搞了个https2http
http: TLS handshake error from 127.0.0.1:5690: EOF

加方括号效果如下:

server_addr = [----------------ipv6----------------]
server_port = 5691
protocol = wss

2023/08/12 22:18:15 [W] [service.go:133] login to server failed: dial tcp: address ----------------ipv6----------------:5691: missing port in address

frpc Version

0.51.2

frps Version

0.51.2

System Architecture

windows_amd64

Configurations

frpc
[common]
server_addr = [----------------ipv6----------------]
server_port = 5691
protocol = wss
login_fail_exit = false
pool_count = 16

Originally created by @qiangbro on GitHub (Aug 12, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3571 ### Bug Description 版本:frp_0.51.2_windows_amd64 windows端frpc连接ipv4的wss一切正常, 把地址改成ipv6,不论ipv6地址带不带方括号都报错 ```frpc server_addr = ----------------ipv6---------------- server_port = 5691 protocol = wss ``` 本地frpc报错 [W] [service.go:133] login to server failed: parse "ws://----------------ipv6----------------/~!frp": invalid port ":3e00" after host 同时服务端frpc报错,服务端frpc搞了个https2http http: TLS handshake error from 127.0.0.1:5690: EOF 加方括号效果如下: ```frpc server_addr = [----------------ipv6----------------] server_port = 5691 protocol = wss ``` 2023/08/12 22:18:15 [W] [service.go:133] login to server failed: dial tcp: address [[----------------ipv6----------------]]:5691: missing port in address ### frpc Version 0.51.2 ### frps Version 0.51.2 ### System Architecture windows_amd64 ### Configurations frpc [common] server_addr = [----------------ipv6----------------] server_port = 5691 protocol = wss login_fail_exit = false pool_count = 16
gitea-mirror 2026-05-05 13:50:44 -06:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 12, 2023):

Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

<!-- gh-comment-id:1714794735 --> @github-actions[bot] commented on GitHub (Sep 12, 2023): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#2850
No description provided.