From fca82e3c743743a82d9ed3153fe2ab44e5a3f7b7 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 28 Jul 2014 16:37:24 +0200 Subject: have port in struct services, allow to specify host:port in pacredir.conf --- pacredir.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pacredir.h') diff --git a/pacredir.h b/pacredir.h index da64464..d8ec90c 100644 --- a/pacredir.h +++ b/pacredir.h @@ -10,6 +10,8 @@ /* services */ struct services { + /* network port */ + uint16_t port; /* true if host/service is online */ uint8_t online; /* unix timestamp of last bad request */ @@ -41,8 +43,6 @@ struct ignore_interfaces { struct request { /* host name */ const char * host; - /* port */ - uint16_t port; /* pointer to service */ struct services * service; /* url */ @@ -63,7 +63,7 @@ char * get_fqdn(const char * hostname, const char * domainname); char * get_url(const char * hostname, const uint16_t port, const char * uri); /* add_host */ -int add_host(const char * host, const char * type); +int add_host(const char * host, const uint16_t port, const char * type); /* remove_host */ int remove_host(const char * host, const char * type); -- cgit v1.2.3-54-g00ecf