Commit 6cce3666 authored by Daniel Verkamp's avatar Daniel Verkamp Committed by Jim Harris
Browse files

rpc: prefer command-line address over config file



Change the command-line -r option to take precedence over the [Rpc]
section of the configuration file.

Change-Id: I6f043bafaa8b0ede10dd8a483ca77ad34ff7639a
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/390329


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
parent c24c1cce
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ spdk_rpc_initialize(const char *listen_addr)
{
	int rc;

	if (rpc_get_listen_addr() != NULL) {
	if (listen_addr == NULL) {
		listen_addr = rpc_get_listen_addr();
	}