diff options
author | Christian Pointner <equinox@anytun.org> | 2008-11-25 04:13:55 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2008-11-25 04:13:55 +0000 |
commit | ea607fcc37694c55e10d0180bdaf8a676bbdf7c8 (patch) | |
tree | 9310e0c444ce30049c8b8ab0a223f7e7c2d003e0 /src/anyCtrOptions.h | |
parent | small type cleanup (diff) |
options parser support ipv6 now
fixed anytun-controld
- fixed log issues
- added better error output
- some cleanups
Diffstat (limited to 'src/anyCtrOptions.h')
-rw-r--r-- | src/anyCtrOptions.h | 8 |
1 files changed, 5 insertions, 3 deletions
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_; |