2010-06-10 02:41:51 +00:00
|
|
|
diff --git a/usr/iscsiadm.c b/usr/iscsiadm.c
|
|
|
|
index 2d9f1a2..87dd4a0 100644
|
|
|
|
--- a/usr/iscsiadm.c
|
|
|
|
+++ b/usr/iscsiadm.c
|
|
|
|
@@ -1646,7 +1646,7 @@ main(int argc, char **argv)
|
|
|
|
goto free_ifaces;
|
|
|
|
}
|
|
|
|
|
|
|
|
- if (mode != MODE_DISCOVERY && ip)
|
2010-06-10 05:32:23 +00:00
|
|
|
+ if (mode != MODE_DISCOVERY && ip && port == -1)
|
2010-06-10 02:41:51 +00:00
|
|
|
port = ISCSI_LISTEN_PORT;
|
|
|
|
|
|
|
|
switch (mode) {
|