mirror of https://github.com/deavminet/dnetd.git
Encode server name
This commit is contained in:
parent
c06be5ae2b
commit
9f0d66b7bc
|
@ -137,7 +137,7 @@ public final class DLink : Thread
|
|||
data ~= [1];
|
||||
|
||||
/* TODO: Encode [serverNameLen, serverName] */
|
||||
string serverName;
|
||||
string serverName = server.getGeneralConfig().getName();
|
||||
data ~= [cast(byte)serverName.length];
|
||||
data ~= serverName;
|
||||
|
||||
|
|
Loading…
Reference in New Issue