aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/syntax/highlighter.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-11-21 15:45:08 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2020-11-22 22:00:32 +0100
commit224336aa077020c35d3feb8a534f92c814b232e9 (patch)
treea6b366f7061ba69c31138b1961f30994b9dfc38e /ui/syntax/highlighter.go
parentconf: allow administrators to add and remove configs easily (diff)
downloadwireguard-windows-224336aa077020c35d3feb8a534f92c814b232e9.tar.xz
wireguard-windows-224336aa077020c35d3feb8a534f92c814b232e9.zip
tunnel: enable {Pre,Post}{Up,Down} scripts gated behind admin knob
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--ui/syntax/highlighter.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/syntax/highlighter.go b/ui/syntax/highlighter.go
index fa6a6530..f6edc712 100644
--- a/ui/syntax/highlighter.go
+++ b/ui/syntax/highlighter.go
@@ -405,8 +405,6 @@ func (s stringSpan) field() field {
return fieldEndpoint
case s.isCaselessSame("PersistentKeepalive"):
return fieldPersistentKeepalive
- }
- /* TODO: uncomment this once we support these in the client
case s.isCaselessSame("PreUp"):
return fieldPreUp
case s.isCaselessSame("PostUp"):
@@ -415,7 +413,7 @@ func (s stringSpan) field() field {
return fieldPreDown
case s.isCaselessSame("PostDown"):
return fieldPostDown
- */
+ }
return fieldInvalid
}