ipsn / go-libtor

Self-contained Tor from Go
BSD 3-Clause "New" or "Revised" License
544 stars 46 forks source link

How to specify listening port of hidden service? #15

Closed aayushsinha44 closed 4 years ago

aayushsinha44 commented 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}})

How to specify which port to listen of the localhost here?

aayushsinha44 commented 4 years ago

Use this onion, err := t.Listen(ctx, &tor.ListenConf{RemotePorts: []int{80}, LocalPort: 5000})