Fix: matching type mismatch

This commit is contained in:
JimhHan 2021-03-27 17:41:46 +08:00
parent 6471cfd290
commit b8196a22a0
No known key found for this signature in database
GPG key ID: 48D5D7CF95157AC5
3 changed files with 119 additions and 39 deletions

View file

@ -6,11 +6,19 @@ option go_package = "github.com/xtls/xray-core/common/matcher/geosite";
option java_package = "com.xray.common.matcher.geosite";
option java_multiple_files = true;
import "common/matcher/domain/domain.proto";
message Domain {
enum Type {
// The value is used as is.
Plain = 0;
// The value is used as a regular expression.
Regex = 1;
// The value is a root domain.
Domain = 2;
// The value is a domain.
Full = 3;
}
// Domain matching type.
xray.common.matcher.domain.MatchingType type = 1;
Type type = 1;
// Domain value.
string value = 2;