socket-tunnel icon indicating copy to clipboard operation
socket-tunnel copied to clipboard

subdomain

Open penguine opened this issue 5 years ago • 1 comments

Hi have had problems with the subdomain option. My hostname: aa.bb.cc my preferred subdomain yyy so I would call the tunnel http://yyy.aa.bb.cc actually in server.js the subdomain is yyy.aa so that the website is not accessible I change in server.js: // OLD if (options.subdomain) { // subdomain = subdomain.replace(.${options.subdomain}, ''); debug("subdomain replaced: ", subdomain); // }

to if (options.subdomain) { subdomain = options.subdomain; debug("subdomain replaced: ", subdomain); }

now I become the subdomain yyy and the website is accessible is this a fix? or only a workaround for me?

penguine avatar Jan 22 '21 11:01 penguine

Hello @penguine

I just checked in source code and the problem in the regex check subdomain you can check that problem in PR #14

Hope that can help you

tuanngocptn avatar Sep 28 '23 09:09 tuanngocptn