add target port as command flag

This commit is contained in:
Lei Xue
2022-12-13 09:49:34 +08:00
parent cec0938186
commit d94641a8d7
4 changed files with 15 additions and 11 deletions

View File

@@ -180,7 +180,7 @@ func (r *remoteBs) startScsiTarget(cfg *config.Config) error {
}
r.targetDriver.NewTarget(r.tgtName, cfg)
//r.targetDriver.SetClusterIP(r.clusterIP)
go r.targetDriver.Run()
go r.targetDriver.Run(3260)
// Wait here so that listener get started
time.Sleep(1 * time.Second)