mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-21 17:16:35 +03:00
Minor refactoring
This commit is contained in:
parent
9b70728441
commit
c5d3198101
|
@ -19,10 +19,11 @@ from lib.core.settings import RESTAPI_DEFAULT_PORT
|
|||
from lib.utils.api import client
|
||||
from lib.utils.api import server
|
||||
|
||||
if __name__ == "__main__":
|
||||
def main():
|
||||
"""
|
||||
REST-JSON API main function
|
||||
"""
|
||||
|
||||
# Set default logging level to debug
|
||||
logger.setLevel(logging.DEBUG)
|
||||
|
||||
|
@ -45,3 +46,6 @@ if __name__ == "__main__":
|
|||
client(args.host, args.port)
|
||||
else:
|
||||
apiparser.print_help()
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
Loading…
Reference in New Issue
Block a user