mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-03 07:56:42 -05:00
Fix: guard against nil pointer dereference of (*NetworkList)
This commit is contained in:
parent
6fcdf998f1
commit
ddc6312c5d
@ -239,7 +239,7 @@ func init() {
|
|||||||
}
|
}
|
||||||
rule.Domain = v.Domain
|
rule.Domain = v.Domain
|
||||||
rule.GeoDomain = v.GeoDomain
|
rule.GeoDomain = v.GeoDomain
|
||||||
rule.Networks = v.Networks.Network
|
rule.Networks = v.Networks.GetNetwork()
|
||||||
rule.Protocol = v.Protocol
|
rule.Protocol = v.Protocol
|
||||||
rule.Attributes = v.Attributes
|
rule.Attributes = v.Attributes
|
||||||
rule.UserEmail = v.UserEmail
|
rule.UserEmail = v.UserEmail
|
||||||
|
@ -71,7 +71,7 @@ func (d *Door) Network() []net.Network {
|
|||||||
return d.config.Networks
|
return d.config.Networks
|
||||||
}
|
}
|
||||||
|
|
||||||
return d.config.NetworkList.Network
|
return d.config.NetworkList.GetNetwork()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *Door) policy() policy.Session {
|
func (d *Door) policy() policy.Session {
|
||||||
|
@ -19,7 +19,7 @@ func init() {
|
|||||||
CipherType: simplifiedServer.Method,
|
CipherType: simplifiedServer.Method,
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
Network: simplifiedServer.Networks.Network,
|
Network: simplifiedServer.Networks.GetNetwork(),
|
||||||
PacketEncoding: simplifiedServer.PacketEncoding,
|
PacketEncoding: simplifiedServer.PacketEncoding,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user