summaryrefslogtreecommitdiff
path: root/src/system
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2024-01-17 18:20:54 +0100
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2024-01-17 18:20:54 +0100
commit2da78b428243bc5e4761372db601559bae865299 (patch)
treebd99d6c7fef274f3644f6335d1e110eae8987df5 /src/system
parent0afa8dd813195b43f7ac3c9f0c11fdc8dae31668 (diff)
downloadvyos-1x-2da78b428243bc5e4761372db601559bae865299.tar.gz
vyos-1x-2da78b428243bc5e4761372db601559bae865299.zip
dhcp: T5948: Strip trailing dot from hostnames
Diffstat (limited to 'src/system')
-rwxr-xr-xsrc/system/on-dhcp-event.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/system/on-dhcp-event.sh b/src/system/on-dhcp-event.sh
index e1a9f1884..3c11105d4 100755
--- a/src/system/on-dhcp-event.sh
+++ b/src/system/on-dhcp-event.sh
@@ -63,7 +63,7 @@ case "$action" in
client_ip=${!client_ip_var}
client_mac=${!client_mac_var}
- client_name=${!client_name_var}
+ client_name=${!client_name_var//./}
client_subnet_id=${!client_subnet_id_var}
if [ -z "$client_name" ]; then