Differences From:
File
src/http.c
part of check-in
[211c476d23]
- Send the HOST header parameter with /xfer requests.
by
drh on
2007-07-30 18:57:36.
[view]
To:
File
src/http.c
part of check-in
[36edf3fd5c]
- Populate the ipaddr column of the rcvfrom table when a file is received from a remote source (push/pull/sync).
by
dan on
2007-08-01 09:04:46.
Also file
src/http.c
part of check-in
[04f7535ee3]
- The merge at dd9633a03d did not work because of the bug just fixed.
This change moves the changes that should have been in that merge into
the main line of the tree.
by
drh on
2007-08-01 12:20:24.
[view]
@@ -62,8 +62,14 @@
fossil_panic("can't resolve host name: %s\n", g.urlName);
}
}
addrIsInit = 1;
+
+ /* Set the Global.zIpAddr variable to the server we are talking to.
+ ** This is used to populate the ipaddr column of the rcvfrom table,
+ ** if any files are received from the server.
+ */
+ g.zIpAddr = mprintf("%s", inet_ntoa(addr.sin_addr));
}
s = socket(AF_INET,SOCK_STREAM,0);
if( s<0 ){
fossil_panic("cannot create a socket");