summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-17 18:36:02 +0100
committerGitHub <noreply@github.com>2024-01-17 18:36:02 +0100
commitbbd8c90755c664cfd8492f5d5efb70dbd8c84639 (patch)
treebd99d6c7fef274f3644f6335d1e110eae8987df5 /src
parent0afa8dd813195b43f7ac3c9f0c11fdc8dae31668 (diff)
parent2da78b428243bc5e4761372db601559bae865299 (diff)
downloadvyos-1x-bbd8c90755c664cfd8492f5d5efb70dbd8c84639.tar.gz
vyos-1x-bbd8c90755c664cfd8492f5d5efb70dbd8c84639.zip
Merge pull request #2843 from sarthurdev/T5948
dhcp: T5948: Strip trailing dot from hostnames
Diffstat (limited to 'src')
-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