Files
Archive/v2raya/service/common/parseGeoIP/geoip.proto
T
2025-11-06 19:42:18 +01:00

21 lines
348 B
Protocol Buffer

syntax = "proto3";
option go_package = "./service/common/parseGeoIP";
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;
}