Skip to content

Commit 33ed5c9

Browse files
committed
Fix a KeyError for Windows agent when using a proxy without authentification
1 parent 0a2e17c commit 33ed5c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

win32/status.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ <h3>Proxy</h3>
250250
<dl>
251251
<dt>Host</dt> <dd>{{ forwarder['proxy_data']['host'] }}</dd>
252252
<dt>Port</dt> <dd>{{ forwarder['proxy_data']['port'] }}</dd>
253-
{% if forwarder['hidden_username'] %}
253+
{% if forwarder.get('hidden_username') %}
254254
<dt>Username</dt> <dd>{{ forwarder['hidden_username'] }}</dd>
255255
<dt>Password</dt> <dd>{{ forwarder['hidden_password'] }}</dd>
256256
{% end %}

0 commit comments

Comments
 (0)