stepping it back
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
# probably shouldnt mess with this!
|
||||
# boot depends on it and if u break it u get no safe mode.
|
||||
from pathlib import Path
|
||||
import os
|
||||
import base64
|
||||
import urllib.request
|
||||
|
||||
Vpn_cache = Path("/tmp/vpn_country.cache")
|
||||
Media_flag = Path("/tmp/media_active")
|
||||
|
||||
def get_base():
|
||||
return os.environ.get("BASE_SWAY")
|
||||
|
||||
def rand12():
|
||||
return base64.urlsafe_b64encode(os.urandom(9)).decode()[:12]
|
||||
return base64.urlsafe_b64encode(os.urandom(9)).decode()[:12]
|
||||
|
||||
def http_get(url, timeout=2):
|
||||
with urllib.request.urlopen(url, timeout=timeout) as r:
|
||||
return r.read().decode().strip()
|
||||
Reference in New Issue
Block a user