diff options
author | Nick Cao <nickcao@nichi.co> | 2023-01-31 19:53:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-31 19:53:53 +0800 |
commit | db77921d65385f6b38335a8f89bb2be7f1e2d8c9 (patch) | |
tree | 5114e7753dc6dfb7aab23f1e69daddf6d39b0760 | |
parent | 8fa665a7c808db826e6e0a7c4a307c3ae0b1085e (diff) | |
parent | 44319dc91185e3b67224572494b09ac5561b9203 (diff) |
Merge pull request #205118 from SharzyL/fix-openconnect-protocol
nixos/openconnect: support alternative protocol
-rw-r--r-- | nixos/modules/services/networking/openconnect.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/openconnect.nix b/nixos/modules/services/networking/openconnect.nix index 5a02bd072257f..7f9006053b890 100644 --- a/nixos/modules/services/networking/openconnect.nix +++ b/nixos/modules/services/networking/openconnect.nix @@ -90,6 +90,7 @@ let generateConfig = name: icfg: pkgs.writeText "config" '' interface=${name} + ${optionalString (icfg.protocol != null) "protocol=${icfg.protocol}"} ${optionalString (icfg.user != null) "user=${icfg.user}"} ${optionalString (icfg.passwordFile != null) "passwd-on-stdin"} ${optionalString (icfg.certificate != null) |