summaryrefslogtreecommitdiff
path: root/ipqr.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipqr.py')
-rw-r--r--ipqr.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipqr.py b/ipqr.py
index 33a4f94..27e522c 100644
--- a/ipqr.py
+++ b/ipqr.py
@@ -2,7 +2,7 @@ import pyqrcode
import socket
-def getIpAdress():
+def getIpAddress():
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(("8.8.8.8", 80))
ipaddress = s.getsockname()[0]
@@ -10,7 +10,7 @@ def getIpAdress():
def getQrCode():
- ip = str(getIpAdress())
+ ip = f"http://{str(getIpAddress())}"
url = pyqrcode.create(ip)
- url.png('ipqr.png', scale=6) \ No newline at end of file
+ url.png('ipqr.png', scale=6)