mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-16 10:39:49 +00:00
provide local info, fix redirect example
This commit is contained in:
1 parent
18cea946f1
commit
205d4c6832
3 files changed
+9
-4
No files matched your search
+1
-1
@@ -475,7 +475,7 @@ static void accept_conn(struct mg_mgr *mgr, struct mg_connection *lsn) {
|
||||
setsockopts(c);
|
||||
c->is_accepted = 1;
|
||||
c->is_hexdumping = lsn->is_hexdumping;
|
||||
c->loc = lsn->loc;
|
||||
setlocaddr(fd, &c->loc); // set local addr to where the client connected to
|
||||
c->pfn = lsn->pfn;
|
||||
c->pfn_data = lsn->pfn_data;
|
||||
c->fn = lsn->fn;
|
||||
|
||||
Reference in new issue
Block a user