mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-18 14:19:48 +03:00
Fix typo
This commit is contained in:
@ -74,7 +74,7 @@ func (c *NameServerConfig) Build() (*dns.NameServer, error) {
|
||||
})
|
||||
}
|
||||
|
||||
geoipList, err := geoip.ParaseIPList(c.ExpectIPs)
|
||||
geoipList, err := geoip.ParseIPList(c.ExpectIPs)
|
||||
if err != nil {
|
||||
return nil, newError("invalid IP rule: ", c.ExpectIPs).Base(err)
|
||||
}
|
||||
|
@ -203,7 +203,7 @@ func parseFieldRule(msg json.RawMessage) (*router.RoutingRule, error) {
|
||||
}
|
||||
|
||||
if rawFieldRule.IP != nil {
|
||||
geoipList, err := geoip.ParaseIPList(*rawFieldRule.IP)
|
||||
geoipList, err := geoip.ParseIPList(*rawFieldRule.IP)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -219,7 +219,7 @@ func parseFieldRule(msg json.RawMessage) (*router.RoutingRule, error) {
|
||||
}
|
||||
|
||||
if rawFieldRule.SourceIP != nil {
|
||||
geoipList, err := geoip.ParaseIPList(*rawFieldRule.SourceIP)
|
||||
geoipList, err := geoip.ParseIPList(*rawFieldRule.SourceIP)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
@ -101,7 +101,7 @@ func (c *SniffingConfig) Build() (*proxyman.SniffingConfig, error) {
|
||||
|
||||
var exIP []*geoip.GeoIP
|
||||
if c.IPsExcluded != nil {
|
||||
exip, err := geoip.ParaseIPList(*c.IPsExcluded)
|
||||
exip, err := geoip.ParseIPList(*c.IPsExcluded)
|
||||
if err != nil {
|
||||
return nil, newError("failed to parse excluded ip").Base(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user