From af6ba0f46f6b950a60476561252b3d78ee394611 Mon Sep 17 00:00:00 2001 From: Samuel Lorch Date: Sat, 8 Apr 2023 14:24:13 +0200 Subject: [PATCH] Fix Address Setting --- internal/networkd/template/config-addressing.network.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/networkd/template/config-addressing.network.tmpl b/internal/networkd/template/config-addressing.network.tmpl index c35a609..19c3e42 100644 --- a/internal/networkd/template/config-addressing.network.tmpl +++ b/internal/networkd/template/config-addressing.network.tmpl @@ -7,8 +7,8 @@ Name={{ .Name }} [Network] LLMNR=no -{{- if eq .AddressingMode 2 }} -DHCP=yes -{{- else }} +{{- if eq .AddressingMode 1 }} Address={{ .Address }} +{{- else if eq .AddressingMode 2 }} +DHCP=yes {{- end }} \ No newline at end of file