Skip to content

Commit

Permalink
Update brook.js
Browse files Browse the repository at this point in the history
  • Loading branch information
txthinking authored Oct 5, 2022
1 parent a96e2e2 commit db2d681
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brook.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ if (parse(Deno.args).v) {
exit(0);
}

var ip4 = (await sh1("curl -s -4 ipip.ooo").catch((e) => "")).trim();
var ip6 = (await sh1("curl -s -6 ipip.ooo").catch((e) => "")).trim();
var ip4 = (await sh1("curl -s -4 http3.ooo").catch((e) => "")).trim();
var ip6 = (await sh1("curl -s -6 http3.ooo").catch((e) => "")).trim();
if (!ip4 && !ip6) {
log("Can not find your server public IP");
exit(1);
Expand Down

0 comments on commit db2d681

Please sign in to comment.