summaryrefslogtreecommitdiff
path: root/src/etc
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-15 06:11:20 +0100
committerGitHub <noreply@github.com>2024-01-15 06:11:20 +0100
commitb303d7b0c612150dc733c330127121cc46eb0be4 (patch)
tree6fd6fd6e4c4e6018ad6b7cd898e90b295df8ca93 /src/etc
parentc4b881e00d70ce705e2991145d31a55853bc832a (diff)
parenta9cf7246d4450c8b3e1b749b36c3393b0963404b (diff)
downloadvyos-1x-b303d7b0c612150dc733c330127121cc46eb0be4.tar.gz
vyos-1x-b303d7b0c612150dc733c330127121cc46eb0be4.zip
Merge pull request #2823 from sever-sever/T4856
T4856: Fix IPsec DHCP-client exit hook
Diffstat (limited to 'src/etc')
-rwxr-xr-xsrc/etc/dhcp/dhclient-exit-hooks.d/99-ipsec-dhclient-hook4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/etc/dhcp/dhclient-exit-hooks.d/99-ipsec-dhclient-hook b/src/etc/dhcp/dhclient-exit-hooks.d/99-ipsec-dhclient-hook
index c7a92fe26..e6edc1ac3 100755
--- a/src/etc/dhcp/dhclient-exit-hooks.d/99-ipsec-dhclient-hook
+++ b/src/etc/dhcp/dhclient-exit-hooks.d/99-ipsec-dhclient-hook
@@ -71,10 +71,6 @@ if __name__ == '__main__':
conf_lines[i] = line.replace(old_ip, new_ip)
found = True
- for i, line in enumerate(secrets_lines):
- if line.find(to_match) > 0:
- secrets_lines[i] = line.replace(old_ip, new_ip)
-
if found:
write_file(SWANCTL_CONF, conf_lines)
ipsec_down(old_ip)