mirror of
https://github.com/PretendoNetwork/account.git
synced 2026-09-13 22:05:20 -05:00
Fixed bug where 0.0.0.0:0 NEX addresses were seen as invalid
This commit is contained in:
@@ -52,7 +52,13 @@ async function processLoginRequest(request: express.Request): Promise<URLSearchP
|
||||
|
||||
const server: HydratedServerDocument | null = await getServerByTitleId(titleID, serverAccessLevel);
|
||||
|
||||
if (!server || !server.service_name || !server.ip || !server.port) {
|
||||
if (!server || !server.service_name || !server.ip) {
|
||||
return nascError('110');
|
||||
}
|
||||
|
||||
if (server.port <= 0 && server.ip !== '0.0.0.0') {
|
||||
// * Addresses of 0.0.0.0:0 are allowed
|
||||
// * They are expected for titles with no NEX server
|
||||
return nascError('110');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user