Have you actually proven this to work?
With the if and else if statements, the moment the first if is deemed true, it doesn't execute the else if. Therefore only the first server shows in the server list.
If you change the else if to an if, then both show up, but you can only connect successfully to the first one. If you attempt to connect to the secondary shard, it displays an error on the console that an "Invalid client detected, disconnecting".
|