mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-10-29 06:31:56 +00:00
Socks4a server: Check if the client sends an IP address as domain (#3628)
Fixes https://github.com/XTLS/Xray-core/issues/3622
This commit is contained in:
1 parent
7e24239c9a
commit
644901d1a5
2 files changed
+6
-1
No files matched your search
@@ -74,7 +74,7 @@ func (s *ServerSession) handshake4(cmd byte, reader io.Reader, writer io.Writer)
|
||||
if err != nil {
|
||||
return nil, errors.New("failed to read domain for socks 4a").Base(err)
|
||||
}
|
||||
address = net.DomainAddress(domain)
|
||||
address = net.ParseAddress(domain)
|
||||
}
|
||||
|
||||
switch cmd {
|
||||
|
||||
Reference in new issue
Block a user