mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-23 14:32:27 +08:00
fix bug
This commit is contained in:
@@ -922,7 +922,8 @@ func DialWithOptions(raddr string) (*UDPSession, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if addr.String() != raddr {
|
if addr.String() != raddr {
|
||||||
return nil, errors.New("recv packet remote addr not match")
|
// TODO 本质是为了安全考虑 但是用域名连接会出现这种情况看之后找个方法解决一下
|
||||||
|
// return nil, errors.New("recv packet remote addr not match")
|
||||||
}
|
}
|
||||||
udpPayload := buf[:n]
|
udpPayload := buf[:n]
|
||||||
connType, enetType, conv, err := ParseEnet(udpPayload)
|
connType, enetType, conv, err := ParseEnet(udpPayload)
|
||||||
|
|||||||
Reference in New Issue
Block a user