Skip to content

Commit 8b60764

Browse files
authored
Merge pull request #91 from ngehrsitz/fix-port-option
Fix --port option
2 parents d637e82 + 9315f41 commit 8b60764

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)