experimental ipv6 ftp
This commit is contained in:
parent
e65c64b34c
commit
2e77fb600a
@ -401,7 +401,8 @@ void handle_PASV(struct ftpserver *cfg, struct ftpclient *client) {
|
|||||||
socklen_t file_sock_len = sizeof(struct sockaddr_in6);
|
socklen_t file_sock_len = sizeof(struct sockaddr_in6);
|
||||||
getsockname(client->data_srv_socket, (struct sockaddr*) &file_addr, &file_sock_len);
|
getsockname(client->data_srv_socket, (struct sockaddr*) &file_addr, &file_sock_len);
|
||||||
|
|
||||||
ipcpy = strdup(client->hostip);
|
fprintf(stderr, "%s\n", client->hostip);
|
||||||
|
ipcpy = strdup(&client->hostip[8]);
|
||||||
|
|
||||||
ipptr = strtok(ipcpy, ".");
|
ipptr = strtok(ipcpy, ".");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user