Delete
This commit is contained in:
7
yoomoney_src/check_ip.py
Normal file
7
yoomoney_src/check_ip.py
Normal file
@@ -0,0 +1,7 @@
|
||||
import socket
|
||||
|
||||
def check_user_ip(external_ip) -> bool:
|
||||
local_ip = socket.gethostbyname(socket.gethostname())
|
||||
if local_ip != external_ip:
|
||||
return False
|
||||
return True
|
||||
Reference in New Issue
Block a user