Skip to content

Commit

Permalink
Switch back to dynamic port allocation.
Browse files Browse the repository at this point in the history
  • Loading branch information
DirtyHairy committed Feb 28, 2025
1 parent 198bdc2 commit 173b25b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/node/socks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { AddressInfo, createServer, Server, Socket } from 'net'
import { describe, it, mock, afterEach, beforeEach } from 'node:test'
import openSocks from 'src/lib/connect/socks'

const PORT = 6666

type State5 = 'new' | 'id' | 'connect'

class MockServer5 {
Expand Down Expand Up @@ -36,7 +34,7 @@ class MockServer5 {
}

start(): Promise<number> {
this.server.listen(PORT, 'localhost')
this.server.listen(undefined, 'localhost')

this.server.on('connection', this.onConnection)

Expand Down

0 comments on commit 173b25b

Please sign in to comment.