set_socket_options(sock_fd, "SO_KEEPALIVE");
set_socket_options(sock_fd, lp_socket_options());
+ if (0){
sa_socklen = sizeof(ss_clnt);
ret = getpeername(sock_fd, sa_clnt, &sa_socklen);
if (ret != 0) {
} else {
remaddr = "0.0.0.0";
}
+ }
+ remaddr = "0.0.0.0";
/*
* Before the first packet, check the global hosts allow/ hosts deny
* client. This prevents attacks on our parsing code from hosts not in
* the hosts allow list.
*/
-
+ if (0){
ret = get_remote_hostname(remote_address,
&p, talloc_tos());
if (ret < 0) {
if (strequal(rhost, "UNKNOWN")) {
rhost = remaddr;
}
-
+ }
+ tsocket_address_inet_from_strings(xconn, "ip", "127.0.0.1", 5445, &local_address);
+ tsocket_address_inet_from_strings(xconn, "ip", "127.0.0.1", 5445, &remote_address);
xconn->local_address = local_address;
xconn->remote_address = remote_address;
- xconn->remote_hostname = talloc_strdup(xconn, rhost);
+// xconn->remote_hostname = talloc_strdup(xconn, rhost);
+ xconn->remote_hostname = talloc_strdup(xconn, "");
if (xconn->remote_hostname == NULL) {
return NT_STATUS_NO_MEMORY;
}