Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
url-checker
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
url-checker
Commits
9686bf06
Commit
9686bf06
authored
Oct 15, 2019
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to discover public IP
parent
04640c07
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
setup.py
setup.py
+1
-0
urlchecker_http.py
urlchecker_http.py
+7
-0
No files found.
setup.py
View file @
9686bf06
...
@@ -14,6 +14,7 @@ setup(
...
@@ -14,6 +14,7 @@ setup(
"peewee>2.10.1"
,
"peewee>2.10.1"
,
"click>=7.0"
,
"click>=7.0"
,
"dnspython"
,
"dnspython"
,
"miniupnpc"
,
],
],
entry_points
=
{
entry_points
=
{
"console_scripts"
:
[
"urlchecker=urlchecker_cli:runUrlChecker "
]
"console_scripts"
:
[
"urlchecker=urlchecker_cli:runUrlChecker "
]
...
...
urlchecker_http.py
View file @
9686bf06
...
@@ -6,6 +6,7 @@ import traceback
...
@@ -6,6 +6,7 @@ import traceback
import
time
import
time
from
forcediphttpsadapter.adapters
import
ForcedIPHTTPSAdapter
from
forcediphttpsadapter.adapters
import
ForcedIPHTTPSAdapter
import
dns.resolver
import
dns.resolver
import
miniupnpc
__version__
=
"0.0.3"
__version__
=
"0.0.3"
...
@@ -109,6 +110,12 @@ class WebBot:
...
@@ -109,6 +110,12 @@ class WebBot:
myresolver
=
dns
.
resolver
.
Resolver
()
myresolver
=
dns
.
resolver
.
Resolver
()
print
(
"Resolvers"
,
myresolver
.
nameservers
)
print
(
"Resolvers"
,
myresolver
.
nameservers
)
u
=
miniupnpc
.
UPnP
()
u
.
discoverdelay
=
200
u
.
discover
()
u
.
selectigd
()
print
(
"external ip address: {}"
.
format
(
u
.
externalipaddress
()))
try
:
try
:
self
.
check
(
url
)
self
.
check
(
url
)
except
KeyboardInterrupt
:
except
KeyboardInterrupt
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment