summaryrefslogtreecommitdiff
path: root/plugin/v2ray/geoip.proto
blob: b25ba08a7fdfdd70cc981e4c0e1aaffe098c2f68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
syntax = "proto3";

package geoip.plugin.v2ray;
option go_package = "github.com/Loyalsoldier/geoip/plugin/v2ray";

message CIDR {
  // IP address, should be either 4 or 16 bytes.
  bytes ip = 1;

  // Number of leading ones in the network mask.
  uint32 prefix = 2;
}

message GeoIP {
  string country_code = 1;
  repeated CIDR cidr = 2;
}

message GeoIPList {
  repeated GeoIP entry = 1;
}