Commit 9f1e8f55 authored by Alberto Miranda's avatar Alberto Miranda ♨️
Browse files

Add 'bind_address' to config file

parent ff966c4a
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -18,6 +18,9 @@ global_settings: [
  # path to pidfile
  pidfile: "@localstatedir@/urd.pid",

  # address to bind to
  bind_address: "127.0.0.1",
  
  # incoming port for remote connections
  remote_port: 42000,
  
+1 −0
Original line number Diff line number Diff line
@@ -247,6 +247,7 @@ config/defaults.cpp: Makefile
\
	   echo "    const char* global_socket        = \"$(localstatedir)/global.socket.2\";"; \
	   echo "    const char* control_socket       = \"$(localstatedir)/control.socket.2\";"; \
	   echo "    const char* bind_address         = \"127.0.0.1\";"; \
	   echo "    const in_port_t remote_port      = 42000;"; \
	   echo "    const char* pidfile              = \"$(localstatedir)/urd.pid\";"; \
\
+4 −0
Original line number Diff line number Diff line
@@ -84,6 +84,10 @@ const file_schema valid_options = declare_file({
                    opt_type::mandatory, 
                    converter<bfs::path>(parsers::parse_path)), 

            declare_option<std::string>(
                    keywords::bind_address,
                    opt_type::mandatory),

            declare_option<uint32_t>(
                    keywords::remote_port, 
                    opt_type::mandatory, 
+1 −0
Original line number Diff line number Diff line
@@ -48,6 +48,7 @@ namespace defaults {
    extern const uint32_t   dry_run_duration;
    extern const char*      global_socket;
    extern const char*      control_socket;
    extern const char*      bind_address;
    extern const in_port_t  remote_port;
    extern const char*      pidfile;
    extern const uint32_t   workers_in_pool;
+1 −0
Original line number Diff line number Diff line
@@ -48,6 +48,7 @@ constexpr static const auto log_file_max_size = "log_file_max_size";
constexpr static const auto dry_run = "dry_run";
constexpr static const auto global_socket = "global_socket";
constexpr static const auto control_socket = "control_socket";
constexpr static const auto bind_address = "bind_address";
constexpr static const auto remote_port = "remote_port";
constexpr static const auto pidfile = "pidfile";
constexpr static const auto workers = "workers";
Loading