Skip to content

Commit b17fdfe

Browse files
authored
Update snare (#328)
Fixed error "The port is required to be int.".
1 parent 08c69b7 commit b17fdfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/snare

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ if __name__ == '__main__':
133133
page_group.add_argument("--page-dir", help="name of the folder to be served")
134134
page_group.add_argument("--list-pages", help="list available pages", action='store_true')
135135
parser.add_argument("--index-page", help="file name of the index page", default='index.html')
136-
parser.add_argument("--port", help="port to listen on", default='8080')
136+
parser.add_argument("--port", type=int, help="port to listen on", default='8080')
137137
parser.add_argument("--host-ip", help="host ip to bind to", default='127.0.0.1')
138138
parser.add_argument("--debug", help="run web server in debug mode", default=False)
139139
parser.add_argument("--tanner", help="ip of the tanner service", default='tanner.mushmush.org')

0 commit comments

Comments
 (0)