git: 0a3e74f55aed - main - ctld: Don't specify the TCP port for default iSCSI portal group sockets
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 05 Feb 2025 19:55:40 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=0a3e74f55aedc20dce7fc3a456d8307155627460
commit 0a3e74f55aedc20dce7fc3a456d8307155627460
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2025-02-05 19:53:55 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2025-02-05 19:55:16 +0000
ctld: Don't specify the TCP port for default iSCSI portal group sockets
portal_group_add_listen already uses the default TCP port if no port
is specified so this was redundant.
Reviewed by: asomers
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D48770
---
usr.sbin/ctld/ctld.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/usr.sbin/ctld/ctld.c b/usr.sbin/ctld/ctld.c
index 3b48d33b5966..d0ba0522f8e2 100644
--- a/usr.sbin/ctld/ctld.c
+++ b/usr.sbin/ctld/ctld.c
@@ -2592,8 +2592,8 @@ conf_new_from_file(const char *path, bool ucl)
"going with defaults");
pg = portal_group_find(conf, "default");
assert(pg != NULL);
- portal_group_add_listen(pg, "0.0.0.0:3260", false);
- portal_group_add_listen(pg, "[::]:3260", false);
+ portal_group_add_listen(pg, "0.0.0.0", false);
+ portal_group_add_listen(pg, "[::]", false);
}
conf->conf_kernel_port_on = true;