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