format code

This commit is contained in:
V2Ray committed 2015-10-06 17:24:57 +02:00
1 parent 7a24dc3e09
commit 78daf8a879
7 files changed
+26 -26

No files matched your search

+6 -6
View File
@@ -60,12 +60,12 @@ func (config VNextConfig) ToVNextServer(network string) VNextServer {
panic(log.Error("Unable to parse VNext IP: %s", config.Address))
}
address := v2net.IPAddress(ip, config.Port)
var dest v2net.Destination
if network == "tcp" {
dest = v2net.NewTCPDestination(address)
} else {
dest = v2net.NewUDPDestination(address)
}
var dest v2net.Destination
if network == "tcp" {
dest = v2net.NewTCPDestination(address)
} else {
dest = v2net.NewUDPDestination(address)
}
return VNextServer{
Destination: dest,
Users: users,