allow returning to newserv from proxy server

This commit is contained in:
Martin Michelsen
2022-03-29 23:23:55 -07:00
parent 03dcc016d8
commit 2e839fe70a
5 changed files with 107 additions and 30 deletions
+1 -7
View File
@@ -274,13 +274,7 @@ void send_update_client_config(shared_ptr<Client> c) {
void send_reconnect(shared_ptr<Client> c, uint32_t address, uint16_t port) {
struct {
// The address is big-endian, for some reason. Probably it was defined as a
// uint8_t[4] in the original PSO source rather than a uint32_t
be_uint32_t address;
uint16_t port;
uint16_t unused;
} __attribute__((packed)) cmd = {address, port, 0};
ReconnectCommand_19 cmd = {address, port, 0};
send_command(c, 0x19, 0x00, cmd);
}