Open ilario opened 4 years ago
Maybe this is not 100% fixed, see https://github.com/libremesh/lime-app/issues/288
Oh, no my fault, we do want hostnames to be lower case forced. I though we didn't. Network names are note forced to be upper-case. Thanks @ilario
Mh... Let's keep the "hostname" and "network name" issues clearly separated please, I am a bit confused now.
Problem 1: Network name defaults to "LibreMesh" (in lime-system's lime-defaults) but the fbw (and lime-app?) forces it to be lowercase. Is this correct?
Problem 2: Hostname defaults to LiMe-%M4%M5%M6 but fbw (and lime-app?) forces it to lower case. Is this correct?
Problem 1: Network name defaults to "LibreMesh" (in lime-system's lime-defaults) but the fbw (and lime-app?) forces it to be lowercase. Is this correct?
Not anymore, this was fixed by https://github.com/libremesh/lime-app/pull/268, now network name can use uppercase.
Problem 2: Hostname defaults to LiMe-%M4%M5%M6 but fbw (and lime-app?) forces it to lower case. Is this correct?
Yes, we have closed https://github.com/libremesh/lime-app/issues/210 to soon. @spiccinini said there:
We should allow uppercase network names. Hostnames, in my opinion, in lowercase. @germanferrero ?
I didn't answer then, now I do: I think we should allow uppercase on hostnames too. It gives more freedom to the users and it is harmless. DNS resolution is case insensitive.
We should allow uppercase network names. Hostnames, in my opinion, in lowercase. @germanferrero ?
I didn't answer then, now I do: I think we should allow uppercase on hostnames too. It gives more freedom to the users and it is harmless. DNS resolution is case insensitive.
I think it is better to use all lowercase hostnames, and change the default to lime-%M4%M5%M6, because there is a lot of broken software in the world that does not have case insensitivity support. I know that enforcing softly the all lowercase hostname is not a proper fix, and bugs may pile under the carpet (for example storing hostnames in hash maps without prior enforcing lowercase, etc). In the other hand I think it is more confusing to have mixed case hostnames.
So it would be enough to change this line:
FirstBootWizard forces the users to use lowercase names for the new networks (see https://github.com/libremesh/lime-app/commit/73d464e) but the default "LibreMesh.org" is not lowercase.
The lowercase was introduced as a bug fix (mentioned here) but the bug is not specified, maybe is for avoiding confusion?
We should change the default "LibreMesh.org" to "libremesh.org". A (maybe small but surely annoying for someone) drawback is that the
10.13.x.x
network domain would change to10.249.x.x