use :0 port
This commit is contained in:
parent
5510d8050e
commit
fbaa14d2b9
|
@ -9,7 +9,6 @@ import (
|
|||
|
||||
var (
|
||||
fleet = pflag.StringP("fleet", "f", params.FleetBeta, "cluster fleet")
|
||||
port = pflag.IntP("port", "p", 44300, "port to start from; one per mail server")
|
||||
mailservers = pflag.StringArrayP("mailservers", "m", nil, "a list of mail servers")
|
||||
duration = pflag.DurationP("duration", "l", time.Hour*24, "length of time span from now")
|
||||
channels = pflag.StringArrayP("channel", "c", []string{"status"}, "name of the channel")
|
||||
|
|
|
@ -9,7 +9,6 @@ import (
|
|||
"math/rand"
|
||||
"os"
|
||||
stdsignal "os/signal"
|
||||
"strconv"
|
||||
"sync"
|
||||
"syscall"
|
||||
"time"
|
||||
|
@ -80,8 +79,7 @@ func main() {
|
|||
|
||||
wg.Add(len(mailserversToCheck))
|
||||
|
||||
for i, enode := range mailserversToCheck {
|
||||
config.ListenAddr = "127.0.0.1:" + strconv.Itoa(*port+i)
|
||||
for _, enode := range mailserversToCheck {
|
||||
config.DataDir, err = ioutil.TempDir("", "")
|
||||
if err != nil {
|
||||
log.Crit("failed to create temp dir", "err", err)
|
||||
|
|
Loading…
Reference in New Issue