You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config.go
+40-20Lines changed: 40 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -325,26 +325,28 @@ type Config struct {
325
325
// loadConfig function. We need to expose the 'raw' strings so the
326
326
// command line library can access them.
327
327
// Only the parsed net.Addrs should be used!
328
-
RawRPCListeners []string`long:"rpclisten" description:"Add an interface/port/socket to listen for RPC connections"`
329
-
RawRESTListeners []string`long:"restlisten" description:"Add an interface/port/socket to listen for REST connections"`
330
-
RawListeners []string`long:"listen" description:"Add an interface/port to listen for peer connections"`
331
-
RawExternalIPs []string`long:"externalip" description:"Add an ip:port to the list of local addresses we claim to listen on to peers. If a port is not specified, the default (9735) will be used regardless of other parameters"`
332
-
ExternalHosts []string`long:"externalhosts" description:"Add a hostname:port that should be periodically resolved to announce IPs for. If a port is not specified, the default (9735) will be used."`
333
-
RPCListeners []net.Addr
334
-
RESTListeners []net.Addr
335
-
RestCORS []string`long:"restcors" description:"Add an ip:port/hostname to allow cross origin access from. To allow all origins, set as \"*\"."`
336
-
Listeners []net.Addr
337
-
ExternalIPs []net.Addr
338
-
DisableListenbool`long:"nolisten" description:"Disable listening for incoming peer connections"`
DisableRestTLSbool`long:"no-rest-tls" description:"Disable TLS for REST connections"`
341
-
WSPingInterval time.Duration`long:"ws-ping-interval" description:"The ping interval for REST based WebSocket connections, set to 0 to disable sending ping messages from the server side"`
342
-
WSPongWait time.Duration`long:"ws-pong-wait" description:"The time we wait for a pong response message on REST based WebSocket connections before the connection is closed as inactive"`
343
-
NATbool`long:"nat" description:"Toggle NAT traversal support (using either UPnP or NAT-PMP) to automatically advertise your external IP address to the network -- NOTE this does not support devices behind multiple NATs"`
344
-
AddPeers []string`long:"addpeer" description:"Specify peers to connect to first"`
345
-
MinBackoff time.Duration`long:"minbackoff" description:"Shortest backoff when reconnecting to persistent peers. Valid time units are {s, m, h}."`
346
-
MaxBackoff time.Duration`long:"maxbackoff" description:"Longest backoff when reconnecting to persistent peers. Valid time units are {s, m, h}."`
347
-
ConnectionTimeout time.Duration`long:"connectiontimeout" description:"The timeout value for network connections. Valid time units are {ms, s, m, h}."`
328
+
RawRPCListeners []string`long:"rpclisten" description:"Add an interface/port/socket to listen for RPC connections"`
329
+
RawRESTListeners []string`long:"restlisten" description:"Add an interface/port/socket to listen for REST connections"`
330
+
RawListeners []string`long:"listen" description:"Add an interface/port to listen for peer connections"`
331
+
RawExternalIPs []string`long:"externalip" description:"Add an ip:port to the list of local addresses we claim to listen on to peers. If a port is not specified, the default (9735) will be used regardless of other parameters"`
332
+
RawExternalDNSHostnameAddressstring`long:"external-dns-hostname" description:"Specify a DNS hostname for the node's external address. If no port is provided, the default (9735) is used."`
333
+
ExternalHosts []string`long:"externalhosts" description:"Add a hostname:port that should be periodically resolved to announce IPs for. If a port is not specified, the default (9735) will be used."`
334
+
RPCListeners []net.Addr
335
+
RESTListeners []net.Addr
336
+
RestCORS []string`long:"restcors" description:"Add an ip:port/hostname to allow cross origin access from. To allow all origins, set as \"*\"."`
DisableRestTLSbool`long:"no-rest-tls" description:"Disable TLS for REST connections"`
343
+
WSPingInterval time.Duration`long:"ws-ping-interval" description:"The ping interval for REST based WebSocket connections, set to 0 to disable sending ping messages from the server side"`
344
+
WSPongWait time.Duration`long:"ws-pong-wait" description:"The time we wait for a pong response message on REST based WebSocket connections before the connection is closed as inactive"`
345
+
NATbool`long:"nat" description:"Toggle NAT traversal support (using either UPnP or NAT-PMP) to automatically advertise your external IP address to the network -- NOTE this does not support devices behind multiple NATs"`
346
+
AddPeers []string`long:"addpeer" description:"Specify peers to connect to first"`
347
+
MinBackoff time.Duration`long:"minbackoff" description:"Shortest backoff when reconnecting to persistent peers. Valid time units are {s, m, h}."`
348
+
MaxBackoff time.Duration`long:"maxbackoff" description:"Longest backoff when reconnecting to persistent peers. Valid time units are {s, m, h}."`
349
+
ConnectionTimeout time.Duration`long:"connectiontimeout" description:"The timeout value for network connections. Valid time units are {ms, s, m, h}."`
348
350
349
351
DebugLevelstring`short:"d" long:"debuglevel" description:"Logging level for all subsystems {trace, debug, info, warn, error, critical} -- You may also specify <global-level>,<subsystem>=<level>,<subsystem2>=<level>,... to set the log level for individual subsystems -- Use show to list available subsystems"`
0 commit comments