fphilipe / xipio

Make xip.io play nicely with subdomains in rails development mode.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shouldn't tld_length be 5 instead of 6?

rstacruz opened this issue · comments

example com
- 1
example 123 123 123 123 xip io
- 6 5 4 3 2 1

I believe that should be:

www google com
- domain 1

(subdomain is www)

example 127 0 0 1 xip io
- domain 5 4 3 2 1

(subdomain is example)

But the setting is called TLD, top level domain, i.e. everything that comes after your domain. This is independent of the subdomain. So foo.bar.com has a TLD length of 1, foo.bar.co.uk has a TLD length of 2, foo.bar.127.0.0.1.xip.io has a TLD length of 6.