@remnawave/xtls-sdk 0.14.0 → 0.16.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.
Files changed (80) hide show
  1. package/build/src/handler/handler.service.d.ts +11 -2
  2. package/build/src/handler/handler.service.d.ts.map +1 -1
  3. package/build/src/handler/handler.service.js +57 -11
  4. package/build/src/handler/interfaces/add-user/add-wireguard-user.interface.d.ts +8 -0
  5. package/build/src/handler/interfaces/add-user/add-wireguard-user.interface.d.ts.map +1 -0
  6. package/build/src/handler/interfaces/add-user/add-wireguard-user.interface.js +2 -0
  7. package/build/src/handler/interfaces/add-user/index.d.ts +1 -0
  8. package/build/src/handler/interfaces/add-user/index.d.ts.map +1 -1
  9. package/build/src/handler/interfaces/add-user/index.js +1 -0
  10. package/build/src/xray-protos/app/commander/config.js +1 -1
  11. package/build/src/xray-protos/app/dispatcher/config.js +1 -1
  12. package/build/src/xray-protos/app/geodata/config.js +1 -1
  13. package/build/src/xray-protos/app/log/command/config.d.ts +2 -2
  14. package/build/src/xray-protos/app/log/command/config.d.ts.map +1 -1
  15. package/build/src/xray-protos/app/log/command/config.js +1 -1
  16. package/build/src/xray-protos/app/log/config.js +1 -1
  17. package/build/src/xray-protos/app/metrics/config.js +1 -1
  18. package/build/src/xray-protos/app/policy/config.js +1 -1
  19. package/build/src/xray-protos/app/proxyman/command/command.d.ts +20 -20
  20. package/build/src/xray-protos/app/proxyman/command/command.d.ts.map +1 -1
  21. package/build/src/xray-protos/app/proxyman/command/command.js +1 -1
  22. package/build/src/xray-protos/app/proxyman/config.js +1 -1
  23. package/build/src/xray-protos/app/reverse/config.js +1 -1
  24. package/build/src/xray-protos/app/router/command/command.d.ts +14 -14
  25. package/build/src/xray-protos/app/router/command/command.d.ts.map +1 -1
  26. package/build/src/xray-protos/app/router/command/command.js +1 -1
  27. package/build/src/xray-protos/app/stats/command/command.d.ts +14 -14
  28. package/build/src/xray-protos/app/stats/command/command.d.ts.map +1 -1
  29. package/build/src/xray-protos/app/stats/command/command.js +1 -1
  30. package/build/src/xray-protos/app/stats/config.js +1 -1
  31. package/build/src/xray-protos/app/version/config.js +1 -1
  32. package/build/src/xray-protos/common/geodata/geodat.js +1 -1
  33. package/build/src/xray-protos/common/log/log.js +1 -1
  34. package/build/src/xray-protos/common/net/address.js +1 -1
  35. package/build/src/xray-protos/common/net/destination.js +1 -1
  36. package/build/src/xray-protos/common/net/network.js +1 -1
  37. package/build/src/xray-protos/common/net/port.js +1 -1
  38. package/build/src/xray-protos/common/protocol/headers.js +1 -1
  39. package/build/src/xray-protos/common/protocol/server_spec.js +1 -1
  40. package/build/src/xray-protos/common/protocol/user.js +1 -1
  41. package/build/src/xray-protos/common/serial/typed_message.js +1 -1
  42. package/build/src/xray-protos/core/config.js +1 -1
  43. package/build/src/xray-protos/proxy/blackhole/config.js +1 -1
  44. package/build/src/xray-protos/proxy/dns/config.d.ts +4 -3
  45. package/build/src/xray-protos/proxy/dns/config.d.ts.map +1 -1
  46. package/build/src/xray-protos/proxy/dns/config.js +50 -23
  47. package/build/src/xray-protos/proxy/dokodemo/config.d.ts +4 -4
  48. package/build/src/xray-protos/proxy/dokodemo/config.d.ts.map +1 -1
  49. package/build/src/xray-protos/proxy/dokodemo/config.js +55 -43
  50. package/build/src/xray-protos/proxy/freedom/config.js +1 -1
  51. package/build/src/xray-protos/proxy/http/config.js +1 -1
  52. package/build/src/xray-protos/proxy/hysteria/account/config.js +1 -1
  53. package/build/src/xray-protos/proxy/hysteria/config.d.ts +0 -1
  54. package/build/src/xray-protos/proxy/hysteria/config.d.ts.map +1 -1
  55. package/build/src/xray-protos/proxy/hysteria/config.js +4 -19
  56. package/build/src/xray-protos/proxy/loopback/config.d.ts +2 -0
  57. package/build/src/xray-protos/proxy/loopback/config.d.ts.map +1 -1
  58. package/build/src/xray-protos/proxy/loopback/config.js +20 -2
  59. package/build/src/xray-protos/proxy/shadowsocks/config.js +1 -1
  60. package/build/src/xray-protos/proxy/shadowsocks_2022/config.d.ts +0 -2
  61. package/build/src/xray-protos/proxy/shadowsocks_2022/config.d.ts.map +1 -1
  62. package/build/src/xray-protos/proxy/shadowsocks_2022/config.js +2 -48
  63. package/build/src/xray-protos/proxy/socks/config.js +1 -1
  64. package/build/src/xray-protos/proxy/trojan/config.js +1 -1
  65. package/build/src/xray-protos/proxy/tun/config.js +1 -1
  66. package/build/src/xray-protos/proxy/vless/account.js +1 -1
  67. package/build/src/xray-protos/proxy/vless/encoding/addons.js +1 -1
  68. package/build/src/xray-protos/proxy/vless/inbound/config.d.ts +1 -1
  69. package/build/src/xray-protos/proxy/vless/inbound/config.d.ts.map +1 -1
  70. package/build/src/xray-protos/proxy/vless/inbound/config.js +8 -8
  71. package/build/src/xray-protos/proxy/vless/outbound/config.js +1 -1
  72. package/build/src/xray-protos/proxy/vmess/account.js +1 -1
  73. package/build/src/xray-protos/proxy/vmess/inbound/config.js +1 -1
  74. package/build/src/xray-protos/proxy/vmess/outbound/config.js +1 -1
  75. package/build/src/xray-protos/proxy/wireguard/config.d.ts +3 -2
  76. package/build/src/xray-protos/proxy/wireguard/config.d.ts.map +1 -1
  77. package/build/src/xray-protos/proxy/wireguard/config.js +28 -31
  78. package/build/src/xray-protos/transport/internet/config.js +1 -1
  79. package/build/src/xray-protos/typeRegistry.js +1 -1
  80. package/package.json +39 -46
@@ -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.2
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc v6.33.4
6
6
  // source: proxy/dokodemo/config.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -15,10 +15,10 @@ exports.protobufPackage = "xray.proxy.dokodemo";
15
15
  function createBaseConfig() {
16
16
  return {
17
17
  $type: "xray.proxy.dokodemo.Config",
18
- address: undefined,
19
- port: 0,
18
+ allowedNetworks: [],
19
+ rewriteAddress: undefined,
20
+ rewritePort: 0,
20
21
  portMap: {},
21
- networks: [],
22
22
  followRedirect: false,
23
23
  userLevel: 0,
24
24
  };
@@ -26,20 +26,20 @@ function createBaseConfig() {
26
26
  exports.Config = {
27
27
  $type: "xray.proxy.dokodemo.Config",
28
28
  encode(message, writer = new wire_1.BinaryWriter()) {
29
- if (message.address !== undefined) {
30
- address_1.IPOrDomain.encode(message.address, writer.uint32(10).fork()).join();
29
+ writer.uint32(58).fork();
30
+ for (const v of message.allowedNetworks) {
31
+ writer.int32(v);
31
32
  }
32
- if (message.port !== 0) {
33
- writer.uint32(16).uint32(message.port);
33
+ writer.join();
34
+ if (message.rewriteAddress !== undefined) {
35
+ address_1.IPOrDomain.encode(message.rewriteAddress, writer.uint32(10).fork()).join();
36
+ }
37
+ if (message.rewritePort !== 0) {
38
+ writer.uint32(16).uint32(message.rewritePort);
34
39
  }
35
40
  globalThis.Object.entries(message.portMap).forEach(([key, value]) => {
36
41
  exports.Config_PortMapEntry.encode({ $type: "xray.proxy.dokodemo.Config.PortMapEntry", key: key, value }, writer.uint32(26).fork()).join();
37
42
  });
38
- writer.uint32(58).fork();
39
- for (const v of message.networks) {
40
- writer.int32(v);
41
- }
42
- writer.join();
43
43
  if (message.followRedirect !== false) {
44
44
  writer.uint32(40).bool(message.followRedirect);
45
45
  }
@@ -55,18 +55,32 @@ exports.Config = {
55
55
  while (reader.pos < end) {
56
56
  const tag = reader.uint32();
57
57
  switch (tag >>> 3) {
58
+ case 7: {
59
+ if (tag === 56) {
60
+ message.allowedNetworks.push(reader.int32());
61
+ continue;
62
+ }
63
+ if (tag === 58) {
64
+ const end2 = reader.uint32() + reader.pos;
65
+ while (reader.pos < end2) {
66
+ message.allowedNetworks.push(reader.int32());
67
+ }
68
+ continue;
69
+ }
70
+ break;
71
+ }
58
72
  case 1: {
59
73
  if (tag !== 10) {
60
74
  break;
61
75
  }
62
- message.address = address_1.IPOrDomain.decode(reader, reader.uint32());
76
+ message.rewriteAddress = address_1.IPOrDomain.decode(reader, reader.uint32());
63
77
  continue;
64
78
  }
65
79
  case 2: {
66
80
  if (tag !== 16) {
67
81
  break;
68
82
  }
69
- message.port = reader.uint32();
83
+ message.rewritePort = reader.uint32();
70
84
  continue;
71
85
  }
72
86
  case 3: {
@@ -79,20 +93,6 @@ exports.Config = {
79
93
  }
80
94
  continue;
81
95
  }
82
- case 7: {
83
- if (tag === 56) {
84
- message.networks.push(reader.int32());
85
- continue;
86
- }
87
- if (tag === 58) {
88
- const end2 = reader.uint32() + reader.pos;
89
- while (reader.pos < end2) {
90
- message.networks.push(reader.int32());
91
- }
92
- continue;
93
- }
94
- break;
95
- }
96
96
  case 5: {
97
97
  if (tag !== 40) {
98
98
  break;
@@ -118,8 +118,21 @@ exports.Config = {
118
118
  fromJSON(object) {
119
119
  return {
120
120
  $type: exports.Config.$type,
121
- address: isSet(object.address) ? address_1.IPOrDomain.fromJSON(object.address) : undefined,
122
- port: isSet(object.port) ? globalThis.Number(object.port) : 0,
121
+ allowedNetworks: globalThis.Array.isArray(object?.allowedNetworks)
122
+ ? object.allowedNetworks.map((e) => (0, network_1.networkFromJSON)(e))
123
+ : globalThis.Array.isArray(object?.allowed_networks)
124
+ ? object.allowed_networks.map((e) => (0, network_1.networkFromJSON)(e))
125
+ : [],
126
+ rewriteAddress: isSet(object.rewriteAddress)
127
+ ? address_1.IPOrDomain.fromJSON(object.rewriteAddress)
128
+ : isSet(object.rewrite_address)
129
+ ? address_1.IPOrDomain.fromJSON(object.rewrite_address)
130
+ : undefined,
131
+ rewritePort: isSet(object.rewritePort)
132
+ ? globalThis.Number(object.rewritePort)
133
+ : isSet(object.rewrite_port)
134
+ ? globalThis.Number(object.rewrite_port)
135
+ : 0,
123
136
  portMap: isObject(object.portMap)
124
137
  ? globalThis.Object.entries(object.portMap).reduce((acc, [key, value]) => {
125
138
  acc[key] = globalThis.String(value);
@@ -131,7 +144,6 @@ exports.Config = {
131
144
  return acc;
132
145
  }, {})
133
146
  : {},
134
- networks: globalThis.Array.isArray(object?.networks) ? object.networks.map((e) => (0, network_1.networkFromJSON)(e)) : [],
135
147
  followRedirect: isSet(object.followRedirect)
136
148
  ? globalThis.Boolean(object.followRedirect)
137
149
  : isSet(object.follow_redirect)
@@ -146,11 +158,14 @@ exports.Config = {
146
158
  },
147
159
  toJSON(message) {
148
160
  const obj = {};
149
- if (message.address !== undefined) {
150
- obj.address = address_1.IPOrDomain.toJSON(message.address);
161
+ if (message.allowedNetworks?.length) {
162
+ obj.allowedNetworks = message.allowedNetworks.map((e) => (0, network_1.networkToJSON)(e));
151
163
  }
152
- if (message.port !== 0) {
153
- obj.port = Math.round(message.port);
164
+ if (message.rewriteAddress !== undefined) {
165
+ obj.rewriteAddress = address_1.IPOrDomain.toJSON(message.rewriteAddress);
166
+ }
167
+ if (message.rewritePort !== 0) {
168
+ obj.rewritePort = Math.round(message.rewritePort);
154
169
  }
155
170
  if (message.portMap) {
156
171
  const entries = globalThis.Object.entries(message.portMap);
@@ -161,9 +176,6 @@ exports.Config = {
161
176
  });
162
177
  }
163
178
  }
164
- if (message.networks?.length) {
165
- obj.networks = message.networks.map((e) => (0, network_1.networkToJSON)(e));
166
- }
167
179
  if (message.followRedirect !== false) {
168
180
  obj.followRedirect = message.followRedirect;
169
181
  }
@@ -177,17 +189,17 @@ exports.Config = {
177
189
  },
178
190
  fromPartial(object) {
179
191
  const message = createBaseConfig();
180
- message.address = (object.address !== undefined && object.address !== null)
181
- ? address_1.IPOrDomain.fromPartial(object.address)
192
+ message.allowedNetworks = object.allowedNetworks?.map((e) => e) || [];
193
+ message.rewriteAddress = (object.rewriteAddress !== undefined && object.rewriteAddress !== null)
194
+ ? address_1.IPOrDomain.fromPartial(object.rewriteAddress)
182
195
  : undefined;
183
- message.port = object.port ?? 0;
196
+ message.rewritePort = object.rewritePort ?? 0;
184
197
  message.portMap = globalThis.Object.entries(object.portMap ?? {}).reduce((acc, [key, value]) => {
185
198
  if (value !== undefined) {
186
199
  acc[key] = globalThis.String(value);
187
200
  }
188
201
  return acc;
189
202
  }, {});
190
- message.networks = object.networks?.map((e) => e) || [];
191
203
  message.followRedirect = object.followRedirect ?? false;
192
204
  message.userLevel = object.userLevel ?? 0;
193
205
  return message;
@@ -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.2
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc v6.33.4
6
6
  // source: proxy/freedom/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.2
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc v6.33.4
6
6
  // source: proxy/http/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.2
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc v6.33.4
6
6
  // source: proxy/hysteria/account/config.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,7 +4,6 @@ import { User } from "../../common/protocol/user";
4
4
  export declare const protobufPackage = "xray.proxy.hysteria";
5
5
  export interface ClientConfig {
6
6
  $type: "xray.proxy.hysteria.ClientConfig";
7
- version: number;
8
7
  server: ServerEndpoint | undefined;
9
8
  }
10
9
  export interface ServerConfig {
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/xray-protos/proxy/hysteria/config.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,IAAI,EA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AC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GACtE,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAChE,CAAC,SAAS,EAAE,GAAG;KAAG,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACvE,OAAO,CAAC,CAAC,CAAC,CAAC;AAMf,MAAM,WAAW,UAAU,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM;IAC7C,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;IAClB,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,YAAY,CAAC;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,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.2
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc v6.33.4
6
6
  // source: proxy/hysteria/config.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -13,16 +13,13 @@ const user_1 = require("../../common/protocol/user");
13
13
  const typeRegistry_1 = require("../../typeRegistry");
14
14
  exports.protobufPackage = "xray.proxy.hysteria";
15
15
  function createBaseClientConfig() {
16
- return { $type: "xray.proxy.hysteria.ClientConfig", version: 0, server: undefined };
16
+ return { $type: "xray.proxy.hysteria.ClientConfig", server: undefined };
17
17
  }
18
18
  exports.ClientConfig = {
19
19
  $type: "xray.proxy.hysteria.ClientConfig",
20
20
  encode(message, writer = new wire_1.BinaryWriter()) {
21
- if (message.version !== 0) {
22
- writer.uint32(8).int32(message.version);
23
- }
24
21
  if (message.server !== undefined) {
25
- server_spec_1.ServerEndpoint.encode(message.server, writer.uint32(18).fork()).join();
22
+ server_spec_1.ServerEndpoint.encode(message.server, writer.uint32(10).fork()).join();
26
23
  }
27
24
  return writer;
28
25
  },
@@ -34,14 +31,7 @@ exports.ClientConfig = {
34
31
  const tag = reader.uint32();
35
32
  switch (tag >>> 3) {
36
33
  case 1: {
37
- if (tag !== 8) {
38
- break;
39
- }
40
- message.version = reader.int32();
41
- continue;
42
- }
43
- case 2: {
44
- if (tag !== 18) {
34
+ if (tag !== 10) {
45
35
  break;
46
36
  }
47
37
  message.server = server_spec_1.ServerEndpoint.decode(reader, reader.uint32());
@@ -58,15 +48,11 @@ exports.ClientConfig = {
58
48
  fromJSON(object) {
59
49
  return {
60
50
  $type: exports.ClientConfig.$type,
61
- version: isSet(object.version) ? globalThis.Number(object.version) : 0,
62
51
  server: isSet(object.server) ? server_spec_1.ServerEndpoint.fromJSON(object.server) : undefined,
63
52
  };
64
53
  },
65
54
  toJSON(message) {
66
55
  const obj = {};
67
- if (message.version !== 0) {
68
- obj.version = Math.round(message.version);
69
- }
70
56
  if (message.server !== undefined) {
71
57
  obj.server = server_spec_1.ServerEndpoint.toJSON(message.server);
72
58
  }
@@ -77,7 +63,6 @@ exports.ClientConfig = {
77
63
  },
78
64
  fromPartial(object) {
79
65
  const message = createBaseClientConfig();
80
- message.version = object.version ?? 0;
81
66
  message.server = (object.server !== undefined && object.server !== null)
82
67
  ? server_spec_1.ServerEndpoint.fromPartial(object.server)
83
68
  : undefined;
@@ -1,8 +1,10 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { SniffingConfig } from "../../app/proxyman/config";
2
3
  export declare const protobufPackage = "xray.proxy.loopback";
3
4
  export interface Config {
4
5
  $type: "xray.proxy.loopback.Config";
5
6
  inboundTag: string;
7
+ sniffing: SniffingConfig | undefined;
6
8
  }
7
9
  export declare const Config: MessageFns<Config, "xray.proxy.loopback.Config">;
8
10
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/xray-protos/proxy/loopback/config.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAGrE,eAAO,MAAM,eAAe,wBAAwB,CAAC;AAErD,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,4BAA4B,CAAC;IACpC,UAAU,EAAE,MAAM,CAAC;CACpB;AAMD,eAAO,MAAM,MAAM,EAAE,UAAU,CAAC,MAAM,EAAE,4BAA4B,CA6DnE,CAAC;AAIF,KAAK,OAAO,GAAG,IAAI,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAEpF,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,CAAC,GAC9C,CAAC,SAAS,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GACtE,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAChE,CAAC,SAAS,EAAE,GAAG;KAAG,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,WAA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AC,IAAI,CAAC,SAAS,OAAO,GAAG,CAAC,GAC9C,CAAC,SAAS,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GACtE,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAChE,CAAC,SAAS,EAAE,GAAG;KAAG,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACvE,OAAO,CAAC,CAAC,CAAC,CAAC;AAMf,MAAM,WAAW,UAAU,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM;IAC7C,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;IAClB,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,YAAY,CAAC;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,17 +1,18 @@
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.2
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc v6.33.4
6
6
  // source: proxy/loopback/config.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.Config = exports.protobufPackage = void 0;
9
9
  /* eslint-disable */
10
10
  const wire_1 = require("@bufbuild/protobuf/wire");
11
+ const config_1 = require("../../app/proxyman/config");
11
12
  const typeRegistry_1 = require("../../typeRegistry");
12
13
  exports.protobufPackage = "xray.proxy.loopback";
13
14
  function createBaseConfig() {
14
- return { $type: "xray.proxy.loopback.Config", inboundTag: "" };
15
+ return { $type: "xray.proxy.loopback.Config", inboundTag: "", sniffing: undefined };
15
16
  }
16
17
  exports.Config = {
17
18
  $type: "xray.proxy.loopback.Config",
@@ -19,6 +20,9 @@ exports.Config = {
19
20
  if (message.inboundTag !== "") {
20
21
  writer.uint32(10).string(message.inboundTag);
21
22
  }
23
+ if (message.sniffing !== undefined) {
24
+ config_1.SniffingConfig.encode(message.sniffing, writer.uint32(18).fork()).join();
25
+ }
22
26
  return writer;
23
27
  },
24
28
  decode(input, length) {
@@ -35,6 +39,13 @@ exports.Config = {
35
39
  message.inboundTag = reader.string();
36
40
  continue;
37
41
  }
42
+ case 2: {
43
+ if (tag !== 18) {
44
+ break;
45
+ }
46
+ message.sniffing = config_1.SniffingConfig.decode(reader, reader.uint32());
47
+ continue;
48
+ }
38
49
  }
39
50
  if ((tag & 7) === 4 || tag === 0) {
40
51
  break;
@@ -51,6 +62,7 @@ exports.Config = {
51
62
  : isSet(object.inbound_tag)
52
63
  ? globalThis.String(object.inbound_tag)
53
64
  : "",
65
+ sniffing: isSet(object.sniffing) ? config_1.SniffingConfig.fromJSON(object.sniffing) : undefined,
54
66
  };
55
67
  },
56
68
  toJSON(message) {
@@ -58,6 +70,9 @@ exports.Config = {
58
70
  if (message.inboundTag !== "") {
59
71
  obj.inboundTag = message.inboundTag;
60
72
  }
73
+ if (message.sniffing !== undefined) {
74
+ obj.sniffing = config_1.SniffingConfig.toJSON(message.sniffing);
75
+ }
61
76
  return obj;
62
77
  },
63
78
  create(base) {
@@ -66,6 +81,9 @@ exports.Config = {
66
81
  fromPartial(object) {
67
82
  const message = createBaseConfig();
68
83
  message.inboundTag = object.inboundTag ?? "";
84
+ message.sniffing = (object.sniffing !== undefined && object.sniffing !== null)
85
+ ? config_1.SniffingConfig.fromPartial(object.sniffing)
86
+ : undefined;
69
87
  return message;
70
88
  },
71
89
  };
@@ -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.2
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc v6.33.4
6
6
  // source: proxy/shadowsocks/config.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -43,8 +43,6 @@ export interface ClientConfig {
43
43
  port: number;
44
44
  method: string;
45
45
  key: string;
46
- udpOverTcp: boolean;
47
- udpOverTcpVersion: number;
48
46
  }
49
47
  export declare const ServerConfig: MessageFns<ServerConfig, "xray.proxy.shadowsocks_2022.ServerConfig">;
50
48
  export declare const MultiUserServerConfig: MessageFns<MultiUserServerConfig, "xray.proxy.shadowsocks_2022.MultiUserServerConfig">;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/xray-protos/proxy/shadowsocks_2022/config.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,OAAO,EAAkC,MAAM,0BAA0B,CAAC;AACnF,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAGlD,eAAO,MAAM,eAAe,gCAAgC,CAAC;AAE7D,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,0CAA0C,CAAC;IAClD,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,EAAE,CAAC;CACpB;AAED,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AC,GAChE,CAAC,SAAS,EAAE,GAAG;KAAG,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACvE,OAAO,CAAC,CAAC,CAAC,CAAC;AAMf,MAAM,WAAW,UAAU,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM;IAC7C,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;IAClB,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,YAAY,CAAC;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,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.2
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc v6.33.4
6
6
  // source: proxy/shadowsocks_2022/config.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -539,15 +539,7 @@ exports.Account = {
539
539
  };
540
540
  typeRegistry_1.messageTypeRegistry.set(exports.Account.$type, exports.Account);
541
541
  function createBaseClientConfig() {
542
- return {
543
- $type: "xray.proxy.shadowsocks_2022.ClientConfig",
544
- address: undefined,
545
- port: 0,
546
- method: "",
547
- key: "",
548
- udpOverTcp: false,
549
- udpOverTcpVersion: 0,
550
- };
542
+ return { $type: "xray.proxy.shadowsocks_2022.ClientConfig", address: undefined, port: 0, method: "", key: "" };
551
543
  }
552
544
  exports.ClientConfig = {
553
545
  $type: "xray.proxy.shadowsocks_2022.ClientConfig",
@@ -564,12 +556,6 @@ exports.ClientConfig = {
564
556
  if (message.key !== "") {
565
557
  writer.uint32(34).string(message.key);
566
558
  }
567
- if (message.udpOverTcp !== false) {
568
- writer.uint32(40).bool(message.udpOverTcp);
569
- }
570
- if (message.udpOverTcpVersion !== 0) {
571
- writer.uint32(48).uint32(message.udpOverTcpVersion);
572
- }
573
559
  return writer;
574
560
  },
575
561
  decode(input, length) {
@@ -607,20 +593,6 @@ exports.ClientConfig = {
607
593
  message.key = reader.string();
608
594
  continue;
609
595
  }
610
- case 5: {
611
- if (tag !== 40) {
612
- break;
613
- }
614
- message.udpOverTcp = reader.bool();
615
- continue;
616
- }
617
- case 6: {
618
- if (tag !== 48) {
619
- break;
620
- }
621
- message.udpOverTcpVersion = reader.uint32();
622
- continue;
623
- }
624
596
  }
625
597
  if ((tag & 7) === 4 || tag === 0) {
626
598
  break;
@@ -636,16 +608,6 @@ exports.ClientConfig = {
636
608
  port: isSet(object.port) ? globalThis.Number(object.port) : 0,
637
609
  method: isSet(object.method) ? globalThis.String(object.method) : "",
638
610
  key: isSet(object.key) ? globalThis.String(object.key) : "",
639
- udpOverTcp: isSet(object.udpOverTcp)
640
- ? globalThis.Boolean(object.udpOverTcp)
641
- : isSet(object.udp_over_tcp)
642
- ? globalThis.Boolean(object.udp_over_tcp)
643
- : false,
644
- udpOverTcpVersion: isSet(object.udpOverTcpVersion)
645
- ? globalThis.Number(object.udpOverTcpVersion)
646
- : isSet(object.udp_over_tcp_version)
647
- ? globalThis.Number(object.udp_over_tcp_version)
648
- : 0,
649
611
  };
650
612
  },
651
613
  toJSON(message) {
@@ -662,12 +624,6 @@ exports.ClientConfig = {
662
624
  if (message.key !== "") {
663
625
  obj.key = message.key;
664
626
  }
665
- if (message.udpOverTcp !== false) {
666
- obj.udpOverTcp = message.udpOverTcp;
667
- }
668
- if (message.udpOverTcpVersion !== 0) {
669
- obj.udpOverTcpVersion = Math.round(message.udpOverTcpVersion);
670
- }
671
627
  return obj;
672
628
  },
673
629
  create(base) {
@@ -681,8 +637,6 @@ exports.ClientConfig = {
681
637
  message.port = object.port ?? 0;
682
638
  message.method = object.method ?? "";
683
639
  message.key = object.key ?? "";
684
- message.udpOverTcp = object.udpOverTcp ?? false;
685
- message.udpOverTcpVersion = object.udpOverTcpVersion ?? 0;
686
640
  return message;
687
641
  },
688
642
  };
@@ -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.2
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc v6.33.4
6
6
  // source: proxy/socks/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.2
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc v6.33.4
6
6
  // source: proxy/trojan/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.2
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc v6.33.4
6
6
  // source: proxy/tun/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.2
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc v6.33.4
6
6
  // source: proxy/vless/account.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.2
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc v6.33.4
6
6
  // source: proxy/vless/encoding/addons.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -12,7 +12,7 @@ export interface Fallback {
12
12
  }
13
13
  export interface Config {
14
14
  $type: "xray.proxy.vless.inbound.Config";
15
- clients: User[];
15
+ users: User[];
16
16
  fallbacks: Fallback[];
17
17
  decryption: string;
18
18
  xorMode: number;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../src/xray-protos/proxy/vless/inbound/config.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAGrD,eAAO,MAAM,eAAe,6BAA6B,CAAC;AAE1D,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,mCAAmC,CAAC;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,iCAAiC,CAAC;IACzC,OAAO,EAAE,IAAI,EAAE,CAAC;IAChB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAMD,eAAO,MAAM,QAAQ,EAAE,UAAU,CAAC,QAAQ,EAAE,mCAAm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