mirror of
https://github.com/Steffo99/estus.git
synced 2024-11-21 23:24:18 +00:00
Fix subnet mask display code
This commit is contained in:
parent
d0f8c08363
commit
cb111e09f7
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ def login(username, password):
|
|||
def subnet_to_string(integer):
|
||||
"""Converte una subnet mask in numero in una stringa"""
|
||||
still_int = (0xFFFFFFFF << (32 - integer)) & 0xFFFFFFFF
|
||||
return f"{still_int >> 24}.{(still_int >> 16) & 0xFF}.{(still_int >> 8)}.{still_int & 0xFF}"
|
||||
return f"{still_int >> 24}.{(still_int >> 16) & 0xFF}.{(still_int >> 8 & 0xFF)}.{still_int & 0xFF}"
|
||||
|
||||
|
||||
# Sito
|
||||
|
|
Loading…
Reference in a new issue