Closed aayushsinha44 closed 4 years ago
// Create an onion service to listen on any port but show as 80 onion, err := t.Listen(ctx, &tor.ListenConf{RemotePorts: []int{80}})
// Create an onion service to listen on any port but show as 80
onion, err := t.Listen(ctx, &tor.ListenConf{RemotePorts: []int{80}})
How to specify which port to listen of the localhost here?
Use this onion, err := t.Listen(ctx, &tor.ListenConf{RemotePorts: []int{80}, LocalPort: 5000})
onion, err := t.Listen(ctx, &tor.ListenConf{RemotePorts: []int{80}, LocalPort: 5000})
// Create an onion service to listen on any port but show as 80
onion, err := t.Listen(ctx, &tor.ListenConf{RemotePorts: []int{80}})
How to specify which port to listen of the localhost here?