1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-10-13 04:24:03 -04:00

convert dokodemo scenario test to protobuf based

This commit is contained in:
Darien Raymond
2017-01-05 11:20:04 +01:00
parent f7721029c7
commit a704d7b6b6
6 changed files with 88 additions and 78 deletions

View File

@@ -74,6 +74,10 @@ func (v *DokodemoDoor) Start() error {
}
v.accepting = true
if v.config.NetworkList == nil || v.config.NetworkList.Size() == 0 {
return errors.New("DokodemoDoor: No network specified.")
}
if v.config.NetworkList.HasNetwork(v2net.Network_TCP) {
err := v.ListenTCP()
if err != nil {