1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-11-15 08:05:36 -05:00

remove unused functions

This commit is contained in:
Darien Raymond
2018-11-20 17:05:32 +01:00
parent 769f770cf7
commit 234c8081f4
2 changed files with 2 additions and 16 deletions

View File

@@ -38,7 +38,7 @@ type DokodemoDoor struct {
// Init initializes the DokodemoDoor instance with necessary parameters.
func (d *DokodemoDoor) Init(config *Config, pm policy.Manager) error {
if (config.NetworkList == nil || config.NetworkList.Size() == 0) && len(config.Networks) == 0 {
if (config.NetworkList == nil || len(config.NetworkList.Network) == 0) && len(config.Networks) == 0 {
return newError("no network specified")
}
d.config = config