Support for ports other than 80/443
groe opened this issue · comments
I just tried out the gem but realized the middleware does not work with my URL http://api.192.168.0.10:3000
.
This is because the port is 3000, and is included in the env['HTTP_HOST']
, which makes the #end_with?
false:
tld_length = env['HTTP_HOST'].end_with?('.xip.io') ? 6 : 1
# => 1
env['HTTP_HOST']
# => "api.192.168.0.10.xip.io:3000"
Any chance to support ports other than 80?