Skip to content

Commit 9315f41

Browse files
author
Norman Gehrsitz
committed
Fix --port option
1 parent d637e82 commit 9315f41

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

utils/solarman_rtu_proxy.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ def main():
7878
parser.add_argument(
7979
"-b", "--bind", default="0.0.0.0", help="The address to listen on"
8080
)
81-
parser.add_argument("-p", "--port", default=1502, help="The TCP port to listen on")
81+
parser.add_argument(
82+
"-p", "--port", default=1502, type=int, help="The TCP port to listen on"
83+
)
8284
parser.add_argument(
8385
"-l", "--logger", required=True, help="The IP address of the logger"
8486
)

0 commit comments

Comments
 (0)