You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added ability to set whitelisted IP addresses to IEDriverServer
The list of IP addresses is a comma-delimited list passed to the /whitelisted-ips command-line argument. Defaults to local loopback address only. Also improved logging to show executable version and rchitecture in driver log. Signed-off-by: Jim Evans <james.h.evans.jr@gmail.com>
Copy file name to clipboardExpand all lines: cpp/webdriver-server/server.cc
+40-5Lines changed: 40 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,8 @@
23
23
#include"logging.h"
24
24
25
25
#defineSERVER_DEFAULT_PAGE"<html><head><title>WebDriver</title></head><body><p id='main'>This is the initial start page for the WebDriver server.</p></body></html>"
26
+
#defineSERVER_DEFAULT_WHITELIST"127.0.0.1"
27
+
#defineSERVER_DEFAULT_BLACKLIST"-0.0.0.0/0"
26
28
#defineHTML_CONTENT_TYPE"text/html"
27
29
#defineJSON_CONTENT_TYPE"application/json"
28
30
@@ -44,18 +46,26 @@ inline int wd_snprintf(char* str, size_t size, const char* format, ...) {
0 commit comments