citra-room: Fix always false case in main() related to port range
If the variable we're checking is a u16, then there can never be values outside of the 0-65535 range. This is bad because an arbitrary larger value can be truncated down into a valid value, making an otherwise malformed argument well-formed. Change it to use u32 to allow the check to function properly.
This commit is contained in:
parent
74465389f3
commit
8366f6cb5e
@ -69,7 +69,7 @@ int main(int argc, char** argv) {
|
||||
std::string token;
|
||||
std::string announce_url;
|
||||
u64 preferred_game_id = 0;
|
||||
u16 port = Network::DefaultRoomPort;
|
||||
u32 port = Network::DefaultRoomPort;
|
||||
u32 max_members = 16;
|
||||
|
||||
static struct option long_options[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user