Allow unsupported version to try to run

This commit is contained in:
Iwan Timmer
2016-04-01 19:17:54 +02:00
parent b30cf20f8c
commit e12beeaef3
3 changed files with 12 additions and 4 deletions

View File

@@ -227,8 +227,10 @@ int main(int argc, char* argv[]) {
fprintf(stderr, "Invalid data received from server: %s\n", config.address, gs_error);
exit(-1);
} else if (ret == GS_UNSUPPORTED_VERSION) {
fprintf(stderr, "Unsupported version: %s\n", gs_error);
exit(-1);
if (!config.unsupported_version) {
fprintf(stderr, "Unsupported version: %s\n", gs_error);
exit(-1);
}
} else if (ret != GS_OK) {
fprintf(stderr, "Can't connect to server %s\n", config.address);
exit(-1);