X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=client%2Fbodet.cpp;fp=client%2Fbodet.cpp;h=b9eecc9c6ac83991daaebf5ae05ceabe5d8226e4;hb=742194d6c8b42570e529c6099fa8125ad9e423f2;hp=54ec609e1f9ea108b156c8881ed3e85d887a4e31;hpb=12b0a68e1897b34861ba10a78c28f024efb21f2d;p=ultimatescore diff --git a/client/bodet.cpp b/client/bodet.cpp index 54ec609..b9eecc9 100644 --- a/client/bodet.cpp +++ b/client/bodet.cpp @@ -61,7 +61,12 @@ int main(int argc, char **argv) } else { inet_pton(AF_INET6, "::1", &saddr6.sin6_addr); } - saddr6.sin6_port = htons(6000); + + int port = 6000; + if (argc >= 3) { + port = atoi(argv[2]); + } + saddr6.sin6_port = htons(port); // TODO: open serial port