Skip to content

Commit 035789b

Browse files
committed
Use the system hostname as the default SSID.
1 parent 39ecac5 commit 035789b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

netconnectd/server.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,9 @@ def dhcp_range(arg):
11021102
config["ap"]["driver"] = args.ap_driver
11031103
if args.ap_ssid:
11041104
config["ap"]["ssid"] = args.ap_ssid
1105+
else:
1106+
# Default SSID should be the hostname
1107+
config["ap"]["ssid"] = socket.gethostname()
11051108
if args.ap_psk:
11061109
config["ap"]["psk"] = args.ap_psk
11071110
if args.ap_channel:

0 commit comments

Comments
 (0)