Skip to content

Commit

Permalink
fix(agent): set dns resolving order to ipv4first.
Browse files Browse the repository at this point in the history
  • Loading branch information
icycodes committed May 28, 2024
1 parent c654270 commit 5014e5a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions clients/tabby-agent/src/lsp/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#!/usr/bin/env node

import * as dns from "node:dns";
import { TabbyAgent } from "../TabbyAgent";
import { Server } from "./Server";
import { isBrowser } from "../env";

if (!isBrowser) {
dns.setDefaultResultOrder("ipv4first");
}
const server = new Server(new TabbyAgent());
server.listen();

0 comments on commit 5014e5a

Please sign in to comment.