diff options
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_; |