summaryrefslogtreecommitdiff
path: root/src/network/network_server.h
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-06-13 21:05:15 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-06-15 06:13:00 +0200
commit667301e3ecc39ecd6bce286fafe25247d774642f (patch)
tree1ce0a0f24272e5ac8ff7cf0ce58b4d0c07e18034 /src/network/network_server.h
parenta91e29b656d91b1f1c6a906ee8e81ddd716723aa (diff)
downloadopenttd-667301e3ecc39ecd6bce286fafe25247d774642f.tar.xz
Codechange: [Network] Make hostname/client IP return strings instead of a C-string
Diffstat (limited to 'src/network/network_server.h')
-rw-r--r--src/network/network_server.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_server.h b/src/network/network_server.h
index 7a3fa3eac..fe15e2a54 100644
--- a/src/network/network_server.h
+++ b/src/network/network_server.h
@@ -115,7 +115,7 @@ public:
return "server";
}
- const char *GetClientIP();
+ const std::string &GetClientIP();
static ServerNetworkGameSocketHandler *GetByClientID(ClientID client_id);
};