mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-09-23 10:44:03 -04:00
network proto
This commit is contained in:
@@ -73,13 +73,13 @@ func (this *DokodemoDoor) Start() error {
|
||||
}
|
||||
this.accepting = true
|
||||
|
||||
if this.config.Network.HasNetwork(v2net.TCPNetwork) {
|
||||
if this.config.Network.HasNetwork(v2net.Network_TCP) {
|
||||
err := this.ListenTCP()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if this.config.Network.HasNetwork(v2net.UDPNetwork) {
|
||||
if this.config.Network.HasNetwork(v2net.Network_UDP) {
|
||||
err := this.ListenUDP()
|
||||
if err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user