You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
David, just curious what you thought of this idea...
Instead of generating a new, random host name every time Comitup is first initialized, what about using uuid.getnode() and then grabbing the last 4-6 characters of the uuid and using that as the AP name?
I know MAC can be spoofed, and getnode() may return different interfaces' values based on HW configs, but it feels like this would at least be a somewhat reliable way to have the same device have the same host name every time comitup is re-initialized.
Something like this in config.py:
And, of course, if you wanted to keep the default behavior unless specified, we could add a bool in config "UseMac" or something that would decide whether to randomly generate the number versus using the MAC.
Thoughts?
The text was updated successfully, but these errors were encountered:
David, just curious what you thought of this idea...
Instead of generating a new, random host name every time Comitup is first initialized, what about using uuid.getnode() and then grabbing the last 4-6 characters of the uuid and using that as the AP name?
I know MAC can be spoofed, and getnode() may return different interfaces' values based on HW configs, but it feels like this would at least be a somewhat reliable way to have the same device have the same host name every time comitup is re-initialized.
Something like this in config.py:
And, of course, if you wanted to keep the default behavior unless specified, we could add a bool in config "UseMac" or something that would decide whether to randomly generate the number versus using the MAC.
Thoughts?
The text was updated successfully, but these errors were encountered: