diff --git a/app/src/server.c b/app/src/server.c index b7e7938c..f1ac7b46 100644 --- a/app/src/server.c +++ b/app/src/server.c @@ -378,8 +378,6 @@ server_init(struct server *server) { server->video_socket = INVALID_SOCKET; server->control_socket = INVALID_SOCKET; - server->port_range.first = 0; - server->port_range.last = 0; server->local_port = 0; server->tunnel_enabled = false; @@ -413,8 +411,6 @@ run_wait_server(void *data) { bool server_start(struct server *server, const char *serial, const struct server_params *params) { - server->port_range = params->port_range; - if (serial) { server->serial = SDL_strdup(serial); if (!server->serial) { diff --git a/app/src/server.h b/app/src/server.h index 7a66670f..1ac12b5f 100644 --- a/app/src/server.h +++ b/app/src/server.h @@ -26,7 +26,6 @@ struct server { socket_t server_socket; // only used if !tunnel_forward socket_t video_socket; socket_t control_socket; - struct sc_port_range port_range; uint16_t local_port; // selected from port_range bool tunnel_enabled; bool tunnel_forward; // use "adb forward" instead of "adb reverse"