Skip to content

Commit

Permalink
fix(server): set empty IP to bind on all available networks
Browse files Browse the repository at this point in the history
  • Loading branch information
sbruens committed Feb 18, 2025
1 parent 34b5e7a commit eb70119
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/shadowbox/server/outline_shadowsocks_server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,11 @@ export class OutlineShadowsocksServer implements ShadowsocksServer {
for (const port in keysByPort) {
const service = {
listeners: [
{type: 'tcp', address: `[::]:${port}`},
{type: 'udp', address: `[::]:${port}`},
// NOTE: We explicitly specify the address string with only the port
// number. This will result in an address that listens on all
// available network interfaces (both IPv4 and IPv6).
{type: 'tcp', address: `:${port}`},
{type: 'udp', address: `:${port}`},
],
keys: keysByPort[port].map((key) => ({
id: key.id,
Expand Down

0 comments on commit eb70119

Please sign in to comment.