1
0
mirror of https://github.com/deavminet/dnetd synced 2024-09-21 09:43:37 +02:00

Print out name of incoming server link request

This commit is contained in:
Tristan B. Kildaire 2021-01-30 13:53:57 +02:00
parent df0a9ec0e7
commit 3d8e2cc522

View File

@ -385,8 +385,9 @@ public class DConnection : Thread
//server.getMeyer().get
gprintln("OurMeyer: "~to!(string)(server.getMeyer()));
gprintln()
ubyte[] data = cast(ubyte[])message.getData()[1..message.getData().length];
string serverNameIncoming = cast(string)data[1..1+data[0]];
gprintln("Server incoming linking request with name '"~serverNameIncoming~"'", DebugType.WARNING);
/* Set the type of this connection to `server` */