mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-17 22:57:10 +00:00
converting from host to address directly
This commit is contained in:
1 parent
34a0cb0b70
commit
6543facd51
3 files changed
+12
-10
No files matched your search
@@ -14,11 +14,7 @@ type DokodemoConfig struct {
|
||||
}
|
||||
|
||||
func (this *DokodemoConfig) Address() v2net.Address {
|
||||
if this.Host.IsIP() {
|
||||
return v2net.IPAddress(this.Host.IP())
|
||||
} else {
|
||||
return v2net.DomainAddress(this.Host.Domain())
|
||||
}
|
||||
return this.Host.Address()
|
||||
}
|
||||
|
||||
func (this *DokodemoConfig) Port() v2net.Port {
|
||||
|
||||
Reference in new issue
Block a user