@linkshell/host 0.4.27 → 0.4.29

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.
@@ -5,6 +5,12 @@ export declare const DIRECT_CHUNK: number;
5
5
  /**
6
6
  * STUN servers used when a host names none: they only tell each side its
7
7
  * public address. (Several, because none of them is reachable everywhere.)
8
+ *
9
+ * No stun.l.google.com: on a network that routes its traffic through a proxy
10
+ * (common in China) it answers with the proxy's address, not the host's own,
11
+ * so the candidate it yields names a place the phone can't reach — a slow,
12
+ * useless srflx. The two Chinese servers answer in tens of milliseconds here;
13
+ * Cloudflare is the one abroad, for a host whose network reaches it directly.
8
14
  */
9
15
  export declare const DEFAULT_ICE_SERVERS: string[];
10
16
  export type DirectFrame = {
@@ -11,8 +11,14 @@ export const DIRECT_CHUNK = 16 * 1024;
11
11
  /**
12
12
  * STUN servers used when a host names none: they only tell each side its
13
13
  * public address. (Several, because none of them is reachable everywhere.)
14
+ *
15
+ * No stun.l.google.com: on a network that routes its traffic through a proxy
16
+ * (common in China) it answers with the proxy's address, not the host's own,
17
+ * so the candidate it yields names a place the phone can't reach — a slow,
18
+ * useless srflx. The two Chinese servers answer in tens of milliseconds here;
19
+ * Cloudflare is the one abroad, for a host whose network reaches it directly.
14
20
  */
15
- export const DEFAULT_ICE_SERVERS = ["stun:stun.cloudflare.com:3478", "stun:stun.chat.bilibili.com:3478", "stun:stun.l.google.com:19302"];
21
+ export const DEFAULT_ICE_SERVERS = ["stun:stun.chat.bilibili.com:3478", "stun:stun.miwifi.com:3478", "stun:stun.cloudflare.com:3478"];
16
22
  const DATA = 1;
17
23
  const CLOSE = 2;
18
24
  export function encodeDirectFrame(frame) {
@@ -1 +1 @@
1
- {"version":3,"file":"direct.js","sourceRoot":"","sources":["../../../../wire/src/direct.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,8EAA8E;AAC9E,uEAAuE;AACvE,+EAA+E;AAC/E,2EAA2E;AAC3E,0EAA0E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AAO,CAAC,MAAM,CAAC,CAAC;IACjD,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IAChD,IAAI,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtD,KAAK,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IACtB,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,KAAiB;IACjD,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,SAAS,CAAC;IACvC,MAAM,MAAM,GAAG,IAAI,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAC3F,MAAM,OAAO,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAClC,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI;QAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IACtE,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,KAAK;QAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAChI,OAAO,SAAS,CAAC;AACnB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linkshell/host",
3
- "version": "0.4.27",
3
+ "version": "0.4.29",
4
4
  "description": "LinkShell v2 host daemon: owns agent sessions and terminals on your computer, serves them to your devices.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -43,7 +43,7 @@
43
43
  "@linkshell/wire": "0.2.10"
44
44
  },
45
45
  "optionalDependencies": {
46
- "@linkshell/mac": "0.1.8"
46
+ "@linkshell/mac": "0.1.9"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/pngjs": "6.0.5",