dovecot-2.0-sslstream: lib-master: Support local_host and remote...

dovecot at dovecot.org dovecot at dovecot.org
Sat Feb 13 02:55:51 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0-sslstream/rev/7b774a0c3493
changeset: 10224:7b774a0c3493
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Oct 28 21:15:23 2009 -0400
description:
lib-master: Support local_host and remote_host in config lookups.

diffstat:

2 files changed, 5 insertions(+)
src/lib-master/master-service-settings.c |    4 ++++
src/lib-master/master-service-settings.h |    1 +

diffs (25 lines):

diff -r 168f2e6ef6d6 -r 7b774a0c3493 src/lib-master/master-service-settings.c
--- a/src/lib-master/master-service-settings.c	Wed Oct 28 21:05:19 2009 -0400
+++ b/src/lib-master/master-service-settings.c	Wed Oct 28 21:15:23 2009 -0400
@@ -148,6 +148,10 @@ master_service_read_config(struct master
 			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;
diff -r 168f2e6ef6d6 -r 7b774a0c3493 src/lib-master/master-service-settings.h
--- a/src/lib-master/master-service-settings.h	Wed Oct 28 21:05:19 2009 -0400
+++ b/src/lib-master/master-service-settings.h	Wed Oct 28 21:15:23 2009 -0400
@@ -28,6 +28,7 @@ struct master_service_settings_input {
 	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;


More information about the dovecot-cvs mailing list