mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-01 08:17:25 +00:00
chinaip
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -28,6 +28,14 @@ func parseRule(msg json.RawMessage) rules.Rule {
|
||||
}
|
||||
return fieldrule
|
||||
}
|
||||
if rule.Type == "chinaip" {
|
||||
chinaiprule := new(ChinaIPRule)
|
||||
if err := json.Unmarshal(msg, chinaiprule); err != nil {
|
||||
log.Error("Invalid chinaip rule: %v", err)
|
||||
return nil
|
||||
}
|
||||
return chinaiprule
|
||||
}
|
||||
log.Error("Unknown router rule type: %s", rule.Type)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user