.
This commit is contained in:
@@ -76,8 +76,8 @@ def parse_iwlist(iwlist_output, current_sid):
|
|||||||
cell["Connected"] = "Yes"
|
cell["Connected"] = "Yes"
|
||||||
else:
|
else:
|
||||||
cell["Connected"] = ""
|
cell["Connected"] = ""
|
||||||
if line.partition("Signal level=")[2].split("/")[0] != "" != -1:
|
if line.partition("Quality=")[2].split("/")[0] != "" != -1:
|
||||||
cell["Signal"] = line.partition("Signal level=")[2].split("/")[0]
|
cell["Signal"] = line.partition("Quality=")[2].split("/")[0] + "/70"
|
||||||
if line.find("Encryption key:") != -1:
|
if line.find("Encryption key:") != -1:
|
||||||
if line.find(":on") != -1:
|
if line.find(":on") != -1:
|
||||||
cell["WPA"] = "WPA2"
|
cell["WPA"] = "WPA2"
|
||||||
|
|||||||
@@ -48,9 +48,9 @@
|
|||||||
<a href="{{ url_for('logout') }}">Logout</a>
|
<a href="{{ url_for('logout') }}">Logout</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if vpn %}
|
{% if vpn %}
|
||||||
<a href="{{ url_for('vpndisconnect') }}">Disconnect</a>
|
<a href="{{ url_for('vpndisconnect') }}">Disconnect from VPN</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="{{ url_for('vpnconnect') }}">Connect</a>
|
<a href="{{ url_for('vpnconnect') }}">Connect to VPN</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="tg-0lax">SSID</th>
|
<th class="tg-0lax">SSID</th>
|
||||||
<th class="tg-0lax">Signal</th>
|
<th class="tg-0lax">Quality</th>
|
||||||
<th class="tg-0lax">Connected</th>
|
<th class="tg-0lax">Connected</th>
|
||||||
<th class="tg-0lax">Security</th>
|
<th class="tg-0lax">Security</th>
|
||||||
<th class="tg-0lax">Action</th>
|
<th class="tg-0lax">Action</th>
|
||||||
|
|||||||
Reference in New Issue
Block a user