Added client IP address to network status
This commit is contained in:
parent
6e7a2ec358
commit
b167af2eed
2 changed files with 3 additions and 0 deletions
|
@ -1544,6 +1544,7 @@ INDEX = Template(r"""<!DOCTYPE html>
|
|||
<div id="modal_netstat" class="modal">
|
||||
<div class="modal-content">
|
||||
<h4 class="grey-text text-darken-3">Network status<i class="mdi mdi-network right grey-text text-darken-3" style="font-size: 2.48rem;"></i></h4>
|
||||
<p><label for="your_address">Your address: </label><span id="your_address">$your_address</span></p>
|
||||
<p><label for="listening_address">Listening address: </label><span id="listening_address">$listening_address</span></p>
|
||||
<p><label for="hass_api_address">HASS API address: </label><span id="hass_api_address">$hass_api_address</span></p>
|
||||
<p>Modifying the following lists is not persistent. To statically control access please use the configuration file.</p>
|
||||
|
@ -4028,6 +4029,7 @@ class RequestHandler(BaseHTTPRequestHandler):
|
|||
githidden="" if GIT else "hiddendiv",
|
||||
# pylint: disable=anomalous-backslash-in-string
|
||||
separator="\%s" % os.sep if os.sep == "\\" else os.sep,
|
||||
your_address=self.client_address[0],
|
||||
listening_address="%s://%s:%i" % (
|
||||
'https' if SSL_CERTIFICATE else 'http', LISTENIP, PORT),
|
||||
hass_api_address="%s" % (HASS_API, ),
|
||||
|
|
1
dev.html
1
dev.html
|
@ -1440,6 +1440,7 @@
|
|||
<div id="modal_netstat" class="modal">
|
||||
<div class="modal-content">
|
||||
<h4 class="grey-text text-darken-3">Network status<i class="mdi mdi-network right grey-text text-darken-3" style="font-size: 2.48rem;"></i></h4>
|
||||
<p><label for="your_address">Your address: </label><span id="your_address">$your_address</span></p>
|
||||
<p><label for="listening_address">Listening address: </label><span id="listening_address">$listening_address</span></p>
|
||||
<p><label for="hass_api_address">HASS API address: </label><span id="hass_api_address">$hass_api_address</span></p>
|
||||
<p>Modifying the following lists is not persistent. To statically control access please use the configuration file.</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue