diff options
author | Christian Hesse <mail@eworm.de> | 2014-07-28 16:37:24 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2014-07-28 16:37:24 +0200 |
commit | fca82e3c743743a82d9ed3153fe2ab44e5a3f7b7 (patch) | |
tree | c289468cb4a29f9bd03c07cc84ac2f16d21a815e /pacredir.h | |
parent | 5481cb92ee747b2820cece4f051f20e59a6d5c0c (diff) | |
download | pacredir-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.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |