str_printfa(str, "\trip=%s",
net_ip2addr(&input->remote_ip));
}
+ if (input->local_host != NULL)
+ str_printfa(str, "\tlhost=%s", input->local_host);
+ if (input->remote_host != NULL)
+ str_printfa(str, "\tlhost=%s", input->remote_host);
str_append_c(str, '\n');
ret = write_full(fd, str_data(str), str_len(str));
} T_END;
const char *service;
const char *username;
struct ip_addr local_ip, remote_ip;
+ const char *local_host, *remote_host;
};
extern const struct setting_parser_info master_service_setting_parser_info;