Skip to content

Commit

Permalink
add secure mode note
Browse files Browse the repository at this point in the history
  • Loading branch information
geohot committed Feb 13, 2018
1 parent 6b11fb5 commit 4f59ded
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions boardesp/webserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,12 @@ static void ICACHE_FLASH_ATTR web_rx_cb(void *arg, char *data, uint16_t len) {
} else {
ets_strcat(resp, "\nesp flash file: user1.bin");
}

if (wifi_secure_mode) {
ets_strcat(resp, "\nin secure mode");
} else {
ets_strcat(resp, "\nin INSECURE mode...<a href=\"/secure\">secure it</a>");
}

ets_strcat(resp,"\nSet USB Mode:"
"<button onclick=\"var xhr = new XMLHttpRequest(); xhr.open('GET', 'set_property?usb_mode=0'); xhr.send()\" type='button'>Client</button>"
Expand Down

0 comments on commit 4f59ded

Please sign in to comment.