Skip to content

Commit 1172c6f

Browse files
committed
fix: update connection regex
1 parent a43db07 commit 1172c6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tunnel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function tunnel(options: Record<string, string | number | null> = {}): {
4444
const url = new Promise<string>((...pair) => ([url_resolver, url_rejector] = pair));
4545

4646
const connection_regex =
47-
/Connection ([a-z0-9-]+) registered connIndex=(\d) ip=([0-9.]+) location=([A-Z]+)/;
47+
/Connection ([a-z0-9-]+) (?:.*?)connIndex=(\d) ip=([0-9.]+) location=([A-Z]+)/;
4848
const connection_resolvers: ((value: Connection | PromiseLike<Connection>) => void)[] = [];
4949
const connection_rejectors: ((reason: unknown) => void)[] = [];
5050
const connections: Promise<Connection>[] = [];

0 commit comments

Comments
 (0)