--- src/ngircd/client.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/ngircd/client.c b/src/ngircd/client.c index 1b72adc..4479792 100644 --- a/src/ngircd/client.c +++ b/src/ngircd/client.c @@ -636,6 +636,12 @@ GLOBAL char * Client_Hostname( CLIENT *Client ) { assert( Client != NULL ); + +#ifdef __CYGWIN__ + if (strcmp(Client->host, "127.0.0.1") == 0) + return "localhost"; +#endif + return Client->host; } /* Client_Hostname */