Port changes

This commit is contained in:
2018-05-31 20:57:27 +02:00
parent db4e101c63
commit 68a7722a65

View File

@ -242,7 +242,7 @@ int main() {
exit(1);
}
list<unsigned short> ports = {80, 443};
list<unsigned short> ports = {8080, 4443};
list<Socket> servers = {};
auto it = ports.begin();
@ -287,7 +287,7 @@ int main() {
try {
Socket *socket = server.accept();
clientnum++;
thread *t = new thread(client_handler, socket, clientnum, server.getSocketPort() == 443);
thread *t = new thread(client_handler, socket, clientnum, server.getSocketPort() == 4443);
} catch (char *msg) {
// Nothing
}