summaryrefslogtreecommitdiffstats
path: root/pacredir.h
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-07-28 16:37:24 +0200
committerGravatar Christian Hesse <mail@eworm.de>2014-07-28 16:37:24 +0200
commitfca82e3c743743a82d9ed3153fe2ab44e5a3f7b7 (patch)
treec289468cb4a29f9bd03c07cc84ac2f16d21a815e /pacredir.h
parent5481cb92ee747b2820cece4f051f20e59a6d5c0c (diff)
downloadpacredir-fca82e3c743743a82d9ed3153fe2ab44e5a3f7b7.tar.gz
pacredir-fca82e3c743743a82d9ed3153fe2ab44e5a3f7b7.tar.zst
have port in struct services, allow to specify host:port in pacredir.conf
Diffstat (limited to 'pacredir.h')
-rw-r--r--pacredir.h6
1 files changed, 3 insertions, 3 deletions
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);