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];
|
data ~= [1];
|
||||||
|
|
||||||
/* TODO: Encode [serverNameLen, serverName] */
|
/* TODO: Encode [serverNameLen, serverName] */
|
||||||
string serverName;
|
string serverName = server.getGeneralConfig().getName();
|
||||||
data ~= [cast(byte)serverName.length];
|
data ~= [cast(byte)serverName.length];
|
||||||
data ~= serverName;
|
data ~= serverName;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue