Skip to content

Commit

Permalink
Bug fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
bia-pain-bache committed Jun 28, 2024
1 parent 3877b07 commit 4c93e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1291,7 +1291,7 @@ const getWarpConfigs = async (env, client) => {

if (wowEndpoint) {
singboxOutbound.server = wowEndpoint.includes('[') ? wowEndpoint.match(ipv6Regex)[1] : wowEndpoint.split(':')[0];
singboxOutbound.server_port = wowEndpoint.includes('[') ? +wowEndpoint.match(portRegex)[0] : +wowEndpoint.split(':')[0];
singboxOutbound.server_port = wowEndpoint.includes('[') ? +wowEndpoint.match(portRegex)[0] : +wowEndpoint.split(':')[1];
}

singboxOutbound.peer_public_key = wgConfig.account.config.peers[0].public_key;
Expand Down

0 comments on commit 4c93e81

Please sign in to comment.