erebe / wstunnel

Tunnel all your traffic over Websocket or HTTP2 - Bypass firewalls/DPI - Static binary available
Other
3.22k stars 290 forks source link

Does not support /url-path #166

Closed ixvick closed 8 months ago

ixvick commented 8 months ago

Tried to run wstunnel behaind nginx on my site on /myprox url, and cannot connect to it from client

on client side i ran wstunnel -v -D 1080 wss://myhost.domain.com:443/myprox

and got error

wstunnel: Invalid port number `443/myprox`
CallStack (from HasCallStack):
  error, called at app/Main.hs:115:31 in main:Main

It will be great to support urls

erebe commented 8 months ago

Hello,

You need to use the upgradePathPrefix option

--upgradePathPrefix=String                 Use a specific prefix that
                                                will show up in the http path
                                                in the upgrade request. Useful
                                                if you need to route requests
                                                server side but don't have
                                                vhosts