summaryrefslogtreecommitdiffstats
path: root/sbin/hastctl
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2011-03-21 11:52:00 +0000
committerpjd <pjd@FreeBSD.org>2011-03-21 11:52:00 +0000
commit81c99b19dc00444e2d0e12ef1eef40f4db2f62d3 (patch)
treeb45291aa3fa364ea007a28c168fcc87d09c88511 /sbin/hastctl
parent5115240a6cdc054f7eea804355742f97c74578d8 (diff)
downloadFreeBSD-src-81c99b19dc00444e2d0e12ef1eef40f4db2f62d3.zip
FreeBSD-src-81c99b19dc00444e2d0e12ef1eef40f4db2f62d3.tar.gz
Forgot to commit this as a part of r219818.
MFC after: 1 week
Diffstat (limited to 'sbin/hastctl')
-rw-r--r--sbin/hastctl/hastctl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/hastctl/hastctl.c b/sbin/hastctl/hastctl.c
index 460042b..67ee761 100644
--- a/sbin/hastctl/hastctl.c
+++ b/sbin/hastctl/hastctl.c
@@ -330,6 +330,9 @@ control_status(struct nv *nv)
(unsigned int)nv_get_uint32(nv, "keepdirty%u", ii));
printf(" remoteaddr: %s\n",
nv_get_string(nv, "remoteaddr%u", ii));
+ str = nv_get_string(nv, "sourceaddr%u", ii);
+ if (str != NULL)
+ printf(" sourceaddr: %s\n", str);
printf(" replication: %s\n",
nv_get_string(nv, "replication%u", ii));
str = nv_get_string(nv, "status%u", ii);
@@ -466,7 +469,7 @@ main(int argc, char *argv[])
}
/* Setup control connection... */
- if (proto_client(cfg->hc_controladdr, &controlconn) < 0) {
+ if (proto_client(NULL, cfg->hc_controladdr, &controlconn) < 0) {
pjdlog_exit(EX_OSERR,
"Unable to setup control connection to %s",
cfg->hc_controladdr);
OpenPOWER on IntegriCloud