@remnawave/xtls-sdk 0.13.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/build/src/xray-protos/app/commander/config.js +1 -1
- package/build/src/xray-protos/app/dispatcher/config.js +1 -1
- package/build/src/xray-protos/app/geodata/config.d.ts +30 -0
- package/build/src/xray-protos/app/geodata/config.d.ts.map +1 -0
- package/build/src/xray-protos/app/geodata/config.js +172 -0
- package/build/src/xray-protos/app/log/command/config.d.ts +2 -2
- package/build/src/xray-protos/app/log/command/config.d.ts.map +1 -1
- package/build/src/xray-protos/app/log/command/config.js +1 -1
- package/build/src/xray-protos/app/log/config.js +1 -1
- package/build/src/xray-protos/app/metrics/config.js +1 -1
- package/build/src/xray-protos/app/policy/config.js +1 -1
- package/build/src/xray-protos/app/proxyman/command/command.d.ts +20 -20
- package/build/src/xray-protos/app/proxyman/command/command.d.ts.map +1 -1
- package/build/src/xray-protos/app/proxyman/command/command.js +1 -1
- package/build/src/xray-protos/app/proxyman/config.js +1 -1
- package/build/src/xray-protos/app/reverse/config.js +1 -1
- package/build/src/xray-protos/app/router/command/command.d.ts +14 -14
- package/build/src/xray-protos/app/router/command/command.d.ts.map +1 -1
- package/build/src/xray-protos/app/router/command/command.js +1 -1
- package/build/src/xray-protos/app/stats/command/command.d.ts +14 -14
- package/build/src/xray-protos/app/stats/command/command.d.ts.map +1 -1
- package/build/src/xray-protos/app/stats/command/command.js +1 -1
- package/build/src/xray-protos/app/stats/config.js +1 -1
- package/build/src/xray-protos/app/version/config.js +1 -1
- package/build/src/xray-protos/common/geodata/geodat.js +1 -1
- package/build/src/xray-protos/common/log/log.js +1 -1
- package/build/src/xray-protos/common/net/address.js +1 -1
- package/build/src/xray-protos/common/net/destination.js +1 -1
- package/build/src/xray-protos/common/net/network.js +1 -1
- package/build/src/xray-protos/common/net/port.js +1 -1
- package/build/src/xray-protos/common/protocol/headers.js +1 -1
- package/build/src/xray-protos/common/protocol/server_spec.js +1 -1
- package/build/src/xray-protos/common/protocol/user.js +1 -1
- package/build/src/xray-protos/common/serial/typed_message.js +1 -1
- package/build/src/xray-protos/core/config.js +1 -1
- package/build/src/xray-protos/proxy/blackhole/config.js +1 -1
- package/build/src/xray-protos/proxy/dns/config.d.ts +20 -7
- package/build/src/xray-protos/proxy/dns/config.d.ts.map +1 -1
- package/build/src/xray-protos/proxy/dns/config.js +191 -55
- package/build/src/xray-protos/proxy/dokodemo/config.d.ts +4 -4
- package/build/src/xray-protos/proxy/dokodemo/config.d.ts.map +1 -1
- package/build/src/xray-protos/proxy/dokodemo/config.js +55 -43
- package/build/src/xray-protos/proxy/freedom/config.d.ts +24 -5
- package/build/src/xray-protos/proxy/freedom/config.d.ts.map +1 -1
- package/build/src/xray-protos/proxy/freedom/config.js +225 -33
- package/build/src/xray-protos/proxy/http/config.js +1 -1
- package/build/src/xray-protos/proxy/hysteria/account/config.js +1 -1
- package/build/src/xray-protos/proxy/hysteria/config.js +1 -1
- package/build/src/xray-protos/proxy/loopback/config.js +1 -1
- package/build/src/xray-protos/proxy/shadowsocks/config.js +1 -1
- package/build/src/xray-protos/proxy/shadowsocks_2022/config.js +1 -1
- package/build/src/xray-protos/proxy/socks/config.js +1 -1
- package/build/src/xray-protos/proxy/trojan/config.js +1 -1
- package/build/src/xray-protos/proxy/tun/config.js +1 -1
- package/build/src/xray-protos/proxy/vless/account.js +1 -1
- package/build/src/xray-protos/proxy/vless/encoding/addons.js +1 -1
- package/build/src/xray-protos/proxy/vless/inbound/config.d.ts +1 -1
- package/build/src/xray-protos/proxy/vless/inbound/config.d.ts.map +1 -1
- package/build/src/xray-protos/proxy/vless/inbound/config.js +8 -8
- package/build/src/xray-protos/proxy/vless/outbound/config.js +1 -1
- package/build/src/xray-protos/proxy/vmess/account.js +1 -1
- package/build/src/xray-protos/proxy/vmess/inbound/config.js +1 -1
- package/build/src/xray-protos/proxy/vmess/outbound/config.js +1 -1
- package/build/src/xray-protos/proxy/wireguard/config.js +1 -1
- package/build/src/xray-protos/transport/internet/config.d.ts +0 -2
- package/build/src/xray-protos/transport/internet/config.d.ts.map +1 -1
- package/build/src/xray-protos/transport/internet/config.js +1 -66
- package/build/src/xray-protos/typeRegistry.js +1 -1
- package/package.json +8 -8
|
@@ -113,57 +113,57 @@ export declare const StatsServiceDefinition: {
|
|
|
113
113
|
readonly methods: {
|
|
114
114
|
readonly getStats: {
|
|
115
115
|
readonly name: "GetStats";
|
|
116
|
-
readonly requestType:
|
|
116
|
+
readonly requestType: typeof GetStatsRequest;
|
|
117
117
|
readonly requestStream: false;
|
|
118
|
-
readonly responseType:
|
|
118
|
+
readonly responseType: typeof GetStatsResponse;
|
|
119
119
|
readonly responseStream: false;
|
|
120
120
|
readonly options: {};
|
|
121
121
|
};
|
|
122
122
|
readonly getStatsOnline: {
|
|
123
123
|
readonly name: "GetStatsOnline";
|
|
124
|
-
readonly requestType:
|
|
124
|
+
readonly requestType: typeof GetStatsRequest;
|
|
125
125
|
readonly requestStream: false;
|
|
126
|
-
readonly responseType:
|
|
126
|
+
readonly responseType: typeof GetStatsResponse;
|
|
127
127
|
readonly responseStream: false;
|
|
128
128
|
readonly options: {};
|
|
129
129
|
};
|
|
130
130
|
readonly queryStats: {
|
|
131
131
|
readonly name: "QueryStats";
|
|
132
|
-
readonly requestType:
|
|
132
|
+
readonly requestType: typeof QueryStatsRequest;
|
|
133
133
|
readonly requestStream: false;
|
|
134
|
-
readonly responseType:
|
|
134
|
+
readonly responseType: typeof QueryStatsResponse;
|
|
135
135
|
readonly responseStream: false;
|
|
136
136
|
readonly options: {};
|
|
137
137
|
};
|
|
138
138
|
readonly getSysStats: {
|
|
139
139
|
readonly name: "GetSysStats";
|
|
140
|
-
readonly requestType:
|
|
140
|
+
readonly requestType: typeof SysStatsRequest;
|
|
141
141
|
readonly requestStream: false;
|
|
142
|
-
readonly responseType:
|
|
142
|
+
readonly responseType: typeof SysStatsResponse;
|
|
143
143
|
readonly responseStream: false;
|
|
144
144
|
readonly options: {};
|
|
145
145
|
};
|
|
146
146
|
readonly getStatsOnlineIpList: {
|
|
147
147
|
readonly name: "GetStatsOnlineIpList";
|
|
148
|
-
readonly requestType:
|
|
148
|
+
readonly requestType: typeof GetStatsRequest;
|
|
149
149
|
readonly requestStream: false;
|
|
150
|
-
readonly responseType:
|
|
150
|
+
readonly responseType: typeof GetStatsOnlineIpListResponse;
|
|
151
151
|
readonly responseStream: false;
|
|
152
152
|
readonly options: {};
|
|
153
153
|
};
|
|
154
154
|
readonly getAllOnlineUsers: {
|
|
155
155
|
readonly name: "GetAllOnlineUsers";
|
|
156
|
-
readonly requestType:
|
|
156
|
+
readonly requestType: typeof GetAllOnlineUsersRequest;
|
|
157
157
|
readonly requestStream: false;
|
|
158
|
-
readonly responseType:
|
|
158
|
+
readonly responseType: typeof GetAllOnlineUsersResponse;
|
|
159
159
|
readonly responseStream: false;
|
|
160
160
|
readonly options: {};
|
|
161
161
|
};
|
|
162
162
|
readonly getUsersStats: {
|
|
163
163
|
readonly name: "GetUsersStats";
|
|
164
|
-
readonly requestType:
|
|
164
|
+
readonly requestType: typeof GetUsersStatsRequest;
|
|
165
165
|
readonly requestStream: false;
|
|
166
|
-
readonly responseType:
|
|
166
|
+
readonly responseType: typeof GetUsersStatsResponse;
|
|
167
167
|
readonly responseStream: false;
|
|
168
168
|
readonly options: {};
|
|
169
169
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../../../src/xray-protos/app/stats/command/command.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAGjE,eAAO,MAAM,eAAe,2BAA2B,CAAC;AAExD,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,wCAAwC,CAAC;IAChD,gCAAgC;I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|
-
// protoc-gen-ts_proto v2.11.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.8
|
|
5
5
|
// protoc v6.33.4
|
|
6
6
|
// source: app/stats/command/command.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.11.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.8
|
|
5
5
|
// protoc v6.33.4
|
|
6
6
|
// source: app/stats/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.11.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.8
|
|
5
5
|
// protoc v6.33.4
|
|
6
6
|
// source: app/version/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.11.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.8
|
|
5
5
|
// protoc v6.33.4
|
|
6
6
|
// source: common/geodata/geodat.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.11.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.8
|
|
5
5
|
// protoc v6.33.4
|
|
6
6
|
// source: common/log/log.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.11.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.8
|
|
5
5
|
// protoc v6.33.4
|
|
6
6
|
// source: common/net/address.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.11.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.8
|
|
5
5
|
// protoc v6.33.4
|
|
6
6
|
// source: common/net/destination.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.11.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.8
|
|
5
5
|
// protoc v6.33.4
|
|
6
6
|
// source: common/net/network.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.11.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.8
|
|
5
5
|
// protoc v6.33.4
|
|
6
6
|
// source: common/net/port.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.11.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.8
|
|
5
5
|
// protoc v6.33.4
|
|
6
6
|
// source: common/protocol/headers.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.11.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.8
|
|
5
5
|
// protoc v6.33.4
|
|
6
6
|
// source: common/protocol/server_spec.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.11.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.8
|
|
5
5
|
// protoc v6.33.4
|
|
6
6
|
// source: common/protocol/user.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.11.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.8
|
|
5
5
|
// protoc v6.33.4
|
|
6
6
|
// source: common/serial/typed_message.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.11.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.8
|
|
5
5
|
// protoc v6.33.4
|
|
6
6
|
// source: core/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.11.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.8
|
|
5
5
|
// protoc v6.33.4
|
|
6
6
|
// source: proxy/blackhole/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,17 +1,30 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { DomainRule } from "../../common/geodata/geodat";
|
|
2
3
|
import { Endpoint } from "../../common/net/destination";
|
|
3
4
|
export declare const protobufPackage = "xray.proxy.dns";
|
|
5
|
+
export declare enum RuleAction {
|
|
6
|
+
Direct = 0,
|
|
7
|
+
Drop = 1,
|
|
8
|
+
Return = 2,
|
|
9
|
+
Hijack = 3,
|
|
10
|
+
UNRECOGNIZED = -1
|
|
11
|
+
}
|
|
12
|
+
export declare function ruleActionFromJSON(object: any): RuleAction;
|
|
13
|
+
export declare function ruleActionToJSON(object: RuleAction): string;
|
|
14
|
+
export interface DNSRuleConfig {
|
|
15
|
+
$type: "xray.proxy.dns.DNSRuleConfig";
|
|
16
|
+
action: RuleAction;
|
|
17
|
+
qType: number[];
|
|
18
|
+
domain: DomainRule[];
|
|
19
|
+
rCode: number;
|
|
20
|
+
}
|
|
4
21
|
export interface Config {
|
|
5
22
|
$type: "xray.proxy.dns.Config";
|
|
6
|
-
/**
|
|
7
|
-
* Server is the DNS server address. If specified, this address overrides the
|
|
8
|
-
* original one.
|
|
9
|
-
*/
|
|
10
|
-
server: Endpoint | undefined;
|
|
11
23
|
userLevel: number;
|
|
12
|
-
|
|
13
|
-
|
|
24
|
+
rule: DNSRuleConfig[];
|
|
25
|
+
rewriteServer: Endpoint | undefined;
|
|
14
26
|
}
|
|
27
|
+
export declare const DNSRuleConfig: MessageFns<DNSRuleConfig, "xray.proxy.dns.DNSRuleConfig">;
|
|
15
28
|
export declare const Config: MessageFns<Config, "xray.proxy.dns.Config">;
|
|
16
29
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
17
30
|
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/xray-protos/proxy/dns/config.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAGxD,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAEhD,MAAM,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/xray-protos/proxy/dns/config.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAGxD,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAEhD,oBAAY,UAAU;IACpB,MAAM,IAAI;IACV,IAAI,IAAI;IACR,MAAM,IAAI;IACV,MAAM,IAAI;IACV,YAAY,KAAK;CAClB;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,GAAG,GAAG,UAAU,CAmB1D;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAc3D;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,8BAA8B,CAAC;IACtC,MAAM,E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IACxD,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;IAC7D,QAAQ,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC;IACzB,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;IAC5B,MAAM,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IACjC,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;CACxC"}
|
|
@@ -1,36 +1,195 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.11.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.8
|
|
5
5
|
// protoc v6.33.4
|
|
6
6
|
// source: proxy/dns/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.Config = exports.protobufPackage = void 0;
|
|
8
|
+
exports.Config = exports.DNSRuleConfig = exports.RuleAction = exports.protobufPackage = void 0;
|
|
9
|
+
exports.ruleActionFromJSON = ruleActionFromJSON;
|
|
10
|
+
exports.ruleActionToJSON = ruleActionToJSON;
|
|
9
11
|
/* eslint-disable */
|
|
10
12
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
13
|
+
const geodat_1 = require("../../common/geodata/geodat");
|
|
11
14
|
const destination_1 = require("../../common/net/destination");
|
|
12
15
|
const typeRegistry_1 = require("../../typeRegistry");
|
|
13
16
|
exports.protobufPackage = "xray.proxy.dns";
|
|
17
|
+
var RuleAction;
|
|
18
|
+
(function (RuleAction) {
|
|
19
|
+
RuleAction[RuleAction["Direct"] = 0] = "Direct";
|
|
20
|
+
RuleAction[RuleAction["Drop"] = 1] = "Drop";
|
|
21
|
+
RuleAction[RuleAction["Return"] = 2] = "Return";
|
|
22
|
+
RuleAction[RuleAction["Hijack"] = 3] = "Hijack";
|
|
23
|
+
RuleAction[RuleAction["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
24
|
+
})(RuleAction || (exports.RuleAction = RuleAction = {}));
|
|
25
|
+
function ruleActionFromJSON(object) {
|
|
26
|
+
switch (object) {
|
|
27
|
+
case 0:
|
|
28
|
+
case "Direct":
|
|
29
|
+
return RuleAction.Direct;
|
|
30
|
+
case 1:
|
|
31
|
+
case "Drop":
|
|
32
|
+
return RuleAction.Drop;
|
|
33
|
+
case 2:
|
|
34
|
+
case "Return":
|
|
35
|
+
return RuleAction.Return;
|
|
36
|
+
case 3:
|
|
37
|
+
case "Hijack":
|
|
38
|
+
return RuleAction.Hijack;
|
|
39
|
+
case -1:
|
|
40
|
+
case "UNRECOGNIZED":
|
|
41
|
+
default:
|
|
42
|
+
return RuleAction.UNRECOGNIZED;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function ruleActionToJSON(object) {
|
|
46
|
+
switch (object) {
|
|
47
|
+
case RuleAction.Direct:
|
|
48
|
+
return "Direct";
|
|
49
|
+
case RuleAction.Drop:
|
|
50
|
+
return "Drop";
|
|
51
|
+
case RuleAction.Return:
|
|
52
|
+
return "Return";
|
|
53
|
+
case RuleAction.Hijack:
|
|
54
|
+
return "Hijack";
|
|
55
|
+
case RuleAction.UNRECOGNIZED:
|
|
56
|
+
default:
|
|
57
|
+
return "UNRECOGNIZED";
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
function createBaseDNSRuleConfig() {
|
|
61
|
+
return { $type: "xray.proxy.dns.DNSRuleConfig", action: 0, qType: [], domain: [], rCode: 0 };
|
|
62
|
+
}
|
|
63
|
+
exports.DNSRuleConfig = {
|
|
64
|
+
$type: "xray.proxy.dns.DNSRuleConfig",
|
|
65
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
66
|
+
if (message.action !== 0) {
|
|
67
|
+
writer.uint32(8).int32(message.action);
|
|
68
|
+
}
|
|
69
|
+
writer.uint32(18).fork();
|
|
70
|
+
for (const v of message.qType) {
|
|
71
|
+
writer.int32(v);
|
|
72
|
+
}
|
|
73
|
+
writer.join();
|
|
74
|
+
for (const v of message.domain) {
|
|
75
|
+
geodat_1.DomainRule.encode(v, writer.uint32(26).fork()).join();
|
|
76
|
+
}
|
|
77
|
+
if (message.rCode !== 0) {
|
|
78
|
+
writer.uint32(32).uint32(message.rCode);
|
|
79
|
+
}
|
|
80
|
+
return writer;
|
|
81
|
+
},
|
|
82
|
+
decode(input, length) {
|
|
83
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
84
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
85
|
+
const message = createBaseDNSRuleConfig();
|
|
86
|
+
while (reader.pos < end) {
|
|
87
|
+
const tag = reader.uint32();
|
|
88
|
+
switch (tag >>> 3) {
|
|
89
|
+
case 1: {
|
|
90
|
+
if (tag !== 8) {
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
message.action = reader.int32();
|
|
94
|
+
continue;
|
|
95
|
+
}
|
|
96
|
+
case 2: {
|
|
97
|
+
if (tag === 16) {
|
|
98
|
+
message.qType.push(reader.int32());
|
|
99
|
+
continue;
|
|
100
|
+
}
|
|
101
|
+
if (tag === 18) {
|
|
102
|
+
const end2 = reader.uint32() + reader.pos;
|
|
103
|
+
while (reader.pos < end2) {
|
|
104
|
+
message.qType.push(reader.int32());
|
|
105
|
+
}
|
|
106
|
+
continue;
|
|
107
|
+
}
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
case 3: {
|
|
111
|
+
if (tag !== 26) {
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
message.domain.push(geodat_1.DomainRule.decode(reader, reader.uint32()));
|
|
115
|
+
continue;
|
|
116
|
+
}
|
|
117
|
+
case 4: {
|
|
118
|
+
if (tag !== 32) {
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
message.rCode = reader.uint32();
|
|
122
|
+
continue;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
reader.skip(tag & 7);
|
|
129
|
+
}
|
|
130
|
+
return message;
|
|
131
|
+
},
|
|
132
|
+
fromJSON(object) {
|
|
133
|
+
return {
|
|
134
|
+
$type: exports.DNSRuleConfig.$type,
|
|
135
|
+
action: isSet(object.action) ? ruleActionFromJSON(object.action) : 0,
|
|
136
|
+
qType: globalThis.Array.isArray(object?.qType)
|
|
137
|
+
? object.qType.map((e) => globalThis.Number(e))
|
|
138
|
+
: globalThis.Array.isArray(object?.q_type)
|
|
139
|
+
? object.q_type.map((e) => globalThis.Number(e))
|
|
140
|
+
: [],
|
|
141
|
+
domain: globalThis.Array.isArray(object?.domain) ? object.domain.map((e) => geodat_1.DomainRule.fromJSON(e)) : [],
|
|
142
|
+
rCode: isSet(object.rCode)
|
|
143
|
+
? globalThis.Number(object.rCode)
|
|
144
|
+
: isSet(object.r_code)
|
|
145
|
+
? globalThis.Number(object.r_code)
|
|
146
|
+
: 0,
|
|
147
|
+
};
|
|
148
|
+
},
|
|
149
|
+
toJSON(message) {
|
|
150
|
+
const obj = {};
|
|
151
|
+
if (message.action !== 0) {
|
|
152
|
+
obj.action = ruleActionToJSON(message.action);
|
|
153
|
+
}
|
|
154
|
+
if (message.qType?.length) {
|
|
155
|
+
obj.qType = message.qType.map((e) => Math.round(e));
|
|
156
|
+
}
|
|
157
|
+
if (message.domain?.length) {
|
|
158
|
+
obj.domain = message.domain.map((e) => geodat_1.DomainRule.toJSON(e));
|
|
159
|
+
}
|
|
160
|
+
if (message.rCode !== 0) {
|
|
161
|
+
obj.rCode = Math.round(message.rCode);
|
|
162
|
+
}
|
|
163
|
+
return obj;
|
|
164
|
+
},
|
|
165
|
+
create(base) {
|
|
166
|
+
return exports.DNSRuleConfig.fromPartial(base ?? {});
|
|
167
|
+
},
|
|
168
|
+
fromPartial(object) {
|
|
169
|
+
const message = createBaseDNSRuleConfig();
|
|
170
|
+
message.action = object.action ?? 0;
|
|
171
|
+
message.qType = object.qType?.map((e) => e) || [];
|
|
172
|
+
message.domain = object.domain?.map((e) => geodat_1.DomainRule.fromPartial(e)) || [];
|
|
173
|
+
message.rCode = object.rCode ?? 0;
|
|
174
|
+
return message;
|
|
175
|
+
},
|
|
176
|
+
};
|
|
177
|
+
typeRegistry_1.messageTypeRegistry.set(exports.DNSRuleConfig.$type, exports.DNSRuleConfig);
|
|
14
178
|
function createBaseConfig() {
|
|
15
|
-
return { $type: "xray.proxy.dns.Config",
|
|
179
|
+
return { $type: "xray.proxy.dns.Config", userLevel: 0, rule: [], rewriteServer: undefined };
|
|
16
180
|
}
|
|
17
181
|
exports.Config = {
|
|
18
182
|
$type: "xray.proxy.dns.Config",
|
|
19
183
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
20
|
-
if (message.server !== undefined) {
|
|
21
|
-
destination_1.Endpoint.encode(message.server, writer.uint32(10).fork()).join();
|
|
22
|
-
}
|
|
23
184
|
if (message.userLevel !== 0) {
|
|
24
|
-
writer.uint32(
|
|
185
|
+
writer.uint32(8).uint32(message.userLevel);
|
|
25
186
|
}
|
|
26
|
-
|
|
27
|
-
writer.uint32(
|
|
187
|
+
for (const v of message.rule) {
|
|
188
|
+
exports.DNSRuleConfig.encode(v, writer.uint32(18).fork()).join();
|
|
28
189
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
writer.int32(v);
|
|
190
|
+
if (message.rewriteServer !== undefined) {
|
|
191
|
+
destination_1.Endpoint.encode(message.rewriteServer, writer.uint32(26).fork()).join();
|
|
32
192
|
}
|
|
33
|
-
writer.join();
|
|
34
193
|
return writer;
|
|
35
194
|
},
|
|
36
195
|
decode(input, length) {
|
|
@@ -41,40 +200,26 @@ exports.Config = {
|
|
|
41
200
|
const tag = reader.uint32();
|
|
42
201
|
switch (tag >>> 3) {
|
|
43
202
|
case 1: {
|
|
44
|
-
if (tag !==
|
|
203
|
+
if (tag !== 8) {
|
|
45
204
|
break;
|
|
46
205
|
}
|
|
47
|
-
message.
|
|
206
|
+
message.userLevel = reader.uint32();
|
|
48
207
|
continue;
|
|
49
208
|
}
|
|
50
209
|
case 2: {
|
|
51
|
-
if (tag !==
|
|
210
|
+
if (tag !== 18) {
|
|
52
211
|
break;
|
|
53
212
|
}
|
|
54
|
-
message.
|
|
213
|
+
message.rule.push(exports.DNSRuleConfig.decode(reader, reader.uint32()));
|
|
55
214
|
continue;
|
|
56
215
|
}
|
|
57
216
|
case 3: {
|
|
58
217
|
if (tag !== 26) {
|
|
59
218
|
break;
|
|
60
219
|
}
|
|
61
|
-
message.
|
|
220
|
+
message.rewriteServer = destination_1.Endpoint.decode(reader, reader.uint32());
|
|
62
221
|
continue;
|
|
63
222
|
}
|
|
64
|
-
case 4: {
|
|
65
|
-
if (tag === 32) {
|
|
66
|
-
message.blockTypes.push(reader.int32());
|
|
67
|
-
continue;
|
|
68
|
-
}
|
|
69
|
-
if (tag === 34) {
|
|
70
|
-
const end2 = reader.uint32() + reader.pos;
|
|
71
|
-
while (reader.pos < end2) {
|
|
72
|
-
message.blockTypes.push(reader.int32());
|
|
73
|
-
}
|
|
74
|
-
continue;
|
|
75
|
-
}
|
|
76
|
-
break;
|
|
77
|
-
}
|
|
78
223
|
}
|
|
79
224
|
if ((tag & 7) === 4 || tag === 0) {
|
|
80
225
|
break;
|
|
@@ -86,37 +231,29 @@ exports.Config = {
|
|
|
86
231
|
fromJSON(object) {
|
|
87
232
|
return {
|
|
88
233
|
$type: exports.Config.$type,
|
|
89
|
-
server: isSet(object.server) ? destination_1.Endpoint.fromJSON(object.server) : undefined,
|
|
90
234
|
userLevel: isSet(object.userLevel)
|
|
91
235
|
? globalThis.Number(object.userLevel)
|
|
92
236
|
: isSet(object.user_level)
|
|
93
237
|
? globalThis.Number(object.user_level)
|
|
94
238
|
: 0,
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
? object.blockTypes.map((e) => globalThis.Number(e))
|
|
102
|
-
: globalThis.Array.isArray(object?.block_types)
|
|
103
|
-
? object.block_types.map((e) => globalThis.Number(e))
|
|
104
|
-
: [],
|
|
239
|
+
rule: globalThis.Array.isArray(object?.rule) ? object.rule.map((e) => exports.DNSRuleConfig.fromJSON(e)) : [],
|
|
240
|
+
rewriteServer: isSet(object.rewriteServer)
|
|
241
|
+
? destination_1.Endpoint.fromJSON(object.rewriteServer)
|
|
242
|
+
: isSet(object.rewrite_server)
|
|
243
|
+
? destination_1.Endpoint.fromJSON(object.rewrite_server)
|
|
244
|
+
: undefined,
|
|
105
245
|
};
|
|
106
246
|
},
|
|
107
247
|
toJSON(message) {
|
|
108
248
|
const obj = {};
|
|
109
|
-
if (message.server !== undefined) {
|
|
110
|
-
obj.server = destination_1.Endpoint.toJSON(message.server);
|
|
111
|
-
}
|
|
112
249
|
if (message.userLevel !== 0) {
|
|
113
250
|
obj.userLevel = Math.round(message.userLevel);
|
|
114
251
|
}
|
|
115
|
-
if (message.
|
|
116
|
-
obj.
|
|
252
|
+
if (message.rule?.length) {
|
|
253
|
+
obj.rule = message.rule.map((e) => exports.DNSRuleConfig.toJSON(e));
|
|
117
254
|
}
|
|
118
|
-
if (message.
|
|
119
|
-
obj.
|
|
255
|
+
if (message.rewriteServer !== undefined) {
|
|
256
|
+
obj.rewriteServer = destination_1.Endpoint.toJSON(message.rewriteServer);
|
|
120
257
|
}
|
|
121
258
|
return obj;
|
|
122
259
|
},
|
|
@@ -125,12 +262,11 @@ exports.Config = {
|
|
|
125
262
|
},
|
|
126
263
|
fromPartial(object) {
|
|
127
264
|
const message = createBaseConfig();
|
|
128
|
-
message.server = (object.server !== undefined && object.server !== null)
|
|
129
|
-
? destination_1.Endpoint.fromPartial(object.server)
|
|
130
|
-
: undefined;
|
|
131
265
|
message.userLevel = object.userLevel ?? 0;
|
|
132
|
-
message.
|
|
133
|
-
message.
|
|
266
|
+
message.rule = object.rule?.map((e) => exports.DNSRuleConfig.fromPartial(e)) || [];
|
|
267
|
+
message.rewriteServer = (object.rewriteServer !== undefined && object.rewriteServer !== null)
|
|
268
|
+
? destination_1.Endpoint.fromPartial(object.rewriteServer)
|
|
269
|
+
: undefined;
|
|
134
270
|
return message;
|
|
135
271
|
},
|
|
136
272
|
};
|
|
@@ -4,13 +4,13 @@ import { Network } from "../../common/net/network";
|
|
|
4
4
|
export declare const protobufPackage = "xray.proxy.dokodemo";
|
|
5
5
|
export interface Config {
|
|
6
6
|
$type: "xray.proxy.dokodemo.Config";
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
/** List of networks that the Dokodemo accepts. */
|
|
8
|
+
allowedNetworks: Network[];
|
|
9
|
+
rewriteAddress: IPOrDomain | undefined;
|
|
10
|
+
rewritePort: number;
|
|
9
11
|
portMap: {
|
|
10
12
|
[key: string]: string;
|
|
11
13
|
};
|
|
12
|
-
/** List of networks that the Dokodemo accepts. */
|
|
13
|
-
networks: Network[];
|
|
14
14
|
followRedirect: boolean;
|
|
15
15
|
userLevel: number;
|
|
16
16
|
}
|