mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
proxy protocol: fix detect method for IPV4 and IPV6
This commit is contained in:
parent
d8d587fd93
commit
fdc6902a90
1 changed files with 1 additions and 1 deletions
|
|
@ -521,7 +521,7 @@ func HandleTcpWorkConnection(localInfo *config.LocalSvrConf, proxyPlugin plugin.
|
|||
DestinationPort: m.DstPort,
|
||||
}
|
||||
|
||||
if h.SourceAddress.To16() == nil {
|
||||
if strings.Contains(m.SrcAddr, ".") {
|
||||
h.TransportProtocol = pp.TCPv4
|
||||
} else {
|
||||
h.TransportProtocol = pp.TCPv6
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue