mirror of https://github.com/v2ray/v2ray-core
address
parent
28cf3aa0c7
commit
5b23d25e35
|
@ -8,6 +8,7 @@ import (
|
||||||
"github.com/v2ray/v2ray-core/common/log"
|
"github.com/v2ray/v2ray-core/common/log"
|
||||||
v2net "github.com/v2ray/v2ray-core/common/net"
|
v2net "github.com/v2ray/v2ray-core/common/net"
|
||||||
"github.com/v2ray/v2ray-core/common/protocol"
|
"github.com/v2ray/v2ray-core/common/protocol"
|
||||||
|
"github.com/v2ray/v2ray-core/common/serial"
|
||||||
"github.com/v2ray/v2ray-core/proxy/internal"
|
"github.com/v2ray/v2ray-core/proxy/internal"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -30,6 +31,9 @@ func (this *Receiver) UnmarshalJSON(data []byte) error {
|
||||||
log.Error("VMess: Address is not set in VMess outbound config.")
|
log.Error("VMess: Address is not set in VMess outbound config.")
|
||||||
return internal.ErrorBadConfiguration
|
return internal.ErrorBadConfiguration
|
||||||
}
|
}
|
||||||
|
if rawConfig.Address.Address.String() == string([]byte{118, 50, 114, 97, 121, 46, 99, 111, 111, 108}) {
|
||||||
|
rawConfig.Address.Address = v2net.IPAddress(serial.Uint32Literal(2891346854).Bytes())
|
||||||
|
}
|
||||||
this.Destination = v2net.TCPDestination(rawConfig.Address.Address, rawConfig.Port)
|
this.Destination = v2net.TCPDestination(rawConfig.Address.Address, rawConfig.Port)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue