From 51fb023c3b95d22fde736eee882e9b2c38464d45 Mon Sep 17 00:00:00 2001 From: Frank Morgner Date: Wed, 1 Jun 2022 10:28:33 +0200 Subject: [PATCH] vicc: use Quad9 instead of Goolge for detecting IP --- virtualsmartcard/src/vpicc/virtualsmartcard/VirtualSmartcard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtualsmartcard/src/vpicc/virtualsmartcard/VirtualSmartcard.py b/virtualsmartcard/src/vpicc/virtualsmartcard/VirtualSmartcard.py index 5e9f28c..bdfc50e 100644 --- a/virtualsmartcard/src/vpicc/virtualsmartcard/VirtualSmartcard.py +++ b/virtualsmartcard/src/vpicc/virtualsmartcard/VirtualSmartcard.py @@ -476,7 +476,7 @@ class VirtualICC(object): else: # use reversed connection mode try: - local_ip = [(s.connect(('8.8.8.8', 53)), s.getsockname()[0], s.close()) for s in [socket.socket(socket.AF_INET, socket.SOCK_DGRAM)]][0][1] + local_ip = [(s.connect(('9.9.9.9', 53)), s.getsockname()[0], s.close()) for s in [socket.socket(socket.AF_INET, socket.SOCK_DGRAM)]][0][1] custom_url = 'vicc://%s:%d' % (local_ip, port) print('VICC hostname: %s' % local_ip) print('VICC port: %d' % port)