attempt to fix passive mode
This commit is contained in:
parent
16d2222491
commit
915b5e2be2
@ -402,7 +402,7 @@ void handle_PASV(struct ftpserver *cfg, struct ftpclient *client) {
|
|||||||
getsockname(client->data_srv_socket, (struct sockaddr*) &file_addr, &file_sock_len);
|
getsockname(client->data_srv_socket, (struct sockaddr*) &file_addr, &file_sock_len);
|
||||||
|
|
||||||
fprintf(stderr, "%s\n", client->hostip);
|
fprintf(stderr, "%s\n", client->hostip);
|
||||||
ipcpy = strdup(&client->hostip[8]);
|
ipcpy = strdup(&client->hostip[7]);
|
||||||
|
|
||||||
ipptr = strtok(ipcpy, ".");
|
ipptr = strtok(ipcpy, ".");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user