mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 09:36:34 -05:00
Fix build breaks
This commit is contained in:
parent
cee0e2db11
commit
fe2146c5b3
@ -15,7 +15,7 @@ func (server *SocksServer) Listen(port uint8) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
server.accepting = true
|
server.accepting = true
|
||||||
go server.AcceptConns(listener)
|
go server.AcceptConnections(listener)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -30,6 +30,6 @@ func (server *SocksServer) AcceptConnections(listener net.Listener) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (server *SocksServer) HandleConnection(connection *net.Conn) error {
|
func (server *SocksServer) HandleConnection(connection net.Conn) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ type VMessHandler struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (*VMessHandler) Listen(port uint8) error {
|
func (*VMessHandler) Listen(port uint8) error {
|
||||||
listener, err := net.Listen("tcp", ":"+string(port))
|
_, err := net.Listen("tcp", ":"+string(port))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user