the server uses tldjs to extract subdomains. but tldjs doesn't consider localhost a valid domain; so subdomain lookup fails and proxy calls fallback to the /www page
Looks like we need to add the following line atop server.js
tldjs.validHosts=['localhost'];
let me know if you have any concerns before I send a pull request.
the server uses tldjs to extract subdomains. but tldjs doesn't consider localhost a valid domain; so subdomain lookup fails and proxy calls fallback to the /www page
Looks like we need to add the following line atop server.js
``` javascript
tldjs.validHosts = ['localhost'];
```
let me know if you have any concerns before I send a pull request.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
the server uses tldjs to extract subdomains. but tldjs doesn't consider localhost a valid domain; so subdomain lookup fails and proxy calls fallback to the /www page
Looks like we need to add the following line atop server.js
let me know if you have any concerns before I send a pull request.
The server code has been heavily refactored and a new --domain option added for running on non-standard domains or subdomains.