OnionIoT / Onion-Console

Web application for accessing Onion devices
GNU Affero General Public License v3.0
70 stars 13 forks source link

wui doesn't change hostname properly #102

Open lexfrei opened 6 years ago

lexfrei commented 6 years ago

Hello! Hostname line in web ui config doesn't change it properly. As you see, hostname on wwan interface not changed. It affects some case when DNS-server adds hosts automatically.

root@omega:/etc/config# cat ./* | grep hostname -C3
config interface 'wwan'
        option ifname 'apcli0'
        option proto 'dhcp'
    option hostname 'OnionOmega2'

config onion
    option version '0.2.0'
--
    option cronloglevel '8'
    option timezone 'MSK-3'
    option zonename 'Minsk'
    option hostname 'omega'

config timeserver 'ntp'
    option enabled '1'
lexfrei commented 6 years ago

Seems fixed here https://github.com/OnionIoT/omega2-hostname-tool/commit/6d31ef0e8674e1f68f1f216fce060155161751e8