From ea607fcc37694c55e10d0180bdaf8a676bbdf7c8 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 25 Nov 2008 04:13:55 +0000 Subject: options parser support ipv6 now fixed anytun-controld - fixed log issues - added better error output - some cleanups --- src/anyCtrOptions.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/anyCtrOptions.h') diff --git a/src/anyCtrOptions.h b/src/anyCtrOptions.h index 1a9e8b3..d4789c3 100644 --- a/src/anyCtrOptions.h +++ b/src/anyCtrOptions.h @@ -62,8 +62,8 @@ public: Options& setFileName(std::string f); std::string getBindToAddr(); Options& setBindToAddr(std::string b); - uint16_t getBindToPort(); - Options& setBindToPort(uint16_t b); + std::string getBindToPort(); + Options& setBindToPort(std::string b); private: @@ -82,10 +82,12 @@ private: }; friend class instanceCleaner; + bool splitAndSetHostPort(std::string hostPort); + Mutex mutex; std::string bind_to_addr_; - uint16_t bind_to_port_; + std::string bind_to_port_; std::string progname_; bool daemonize_; bool chroot_; -- cgit v1.2.3