mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-17 22:57:10 +00:00
Fix socks authentication
This commit is contained in:
1 parent
1652b3f7f0
commit
5cee727308
2 files changed
+2
-2
No files matched your search
@@ -103,7 +103,7 @@ func (server *SocksServer) handleSocks5(reader *v2net.TimeOutReader, writer io.W
|
||||
return err
|
||||
}
|
||||
status := byte(0)
|
||||
if server.config.HasAccount(upRequest.Username(), upRequest.Password()) {
|
||||
if !server.config.HasAccount(upRequest.Username(), upRequest.Password()) {
|
||||
status = byte(0xFF)
|
||||
}
|
||||
upResponse := protocol.NewSocks5UserPassResponse(status)
|
||||
|
||||
Reference in new issue
Block a user