Init local_ip and local_port properly in mg_connection

This commit is contained in:
Sergey Lyubka committed 2014-03-30 22:50:10 +01:00
1 parent e62e48397d
commit 33c56b0edc
2 files changed
+34 -23

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ struct mg_connection {
const char *query_string; // URL part after '?', not including '?', or NULL
char remote_ip[48]; // Max IPv6 string length is 45 characters
const char *local_ip; // Local IP address
char local_ip[48]; // Local IP address
unsigned short remote_port; // Client's port
unsigned short local_port; // Local port number