Refactor Code
This commit is contained in:
@@ -110,6 +110,7 @@ def show_result(user_args):
|
|||||||
else:
|
else:
|
||||||
print(context)
|
print(context)
|
||||||
|
|
||||||
|
|
||||||
def filter_hostname(host):
|
def filter_hostname(host):
|
||||||
"""Remove unused characters and split by address and port."""
|
"""Remove unused characters and split by address and port."""
|
||||||
host = host.replace('http://', '').replace('https://', '').replace('/', '')
|
host = host.replace('http://', '').replace('https://', '').replace('/', '')
|
||||||
|
|||||||
Reference in New Issue
Block a user