mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 15:36:41 -05:00
remove unused code
This commit is contained in:
parent
e62d649322
commit
bd8239f12d
@ -1,9 +1,6 @@
|
|||||||
package socks
|
package socks
|
||||||
|
|
||||||
import (
|
import "v2ray.com/core/common/protocol"
|
||||||
"v2ray.com/core/common/net"
|
|
||||||
"v2ray.com/core/common/protocol"
|
|
||||||
)
|
|
||||||
|
|
||||||
func (v *Account) Equals(another protocol.Account) bool {
|
func (v *Account) Equals(another protocol.Account) bool {
|
||||||
if account, ok := another.(*Account); ok {
|
if account, ok := another.(*Account); ok {
|
||||||
@ -26,10 +23,3 @@ func (v *ServerConfig) HasAccount(username, password string) bool {
|
|||||||
}
|
}
|
||||||
return storedPassed == password
|
return storedPassed == password
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *ServerConfig) GetNetAddress() net.Address {
|
|
||||||
if v.Address == nil {
|
|
||||||
return net.LocalHostIP
|
|
||||||
}
|
|
||||||
return v.Address.AsAddress()
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user