1
0
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:
Darien Raymond
2016-09-20 10:44:44 +02:00
parent fbdb1e09d7
commit c518726910
21 changed files with 173 additions and 52 deletions

View File

@@ -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