use :0 port

This commit is contained in:
Adam Babik 2018-12-07 17:13:59 +01:00
parent 5510d8050e
commit fbaa14d2b9
No known key found for this signature in database
GPG Key ID: ED02515A1FC0D1B4
2 changed files with 1 additions and 4 deletions

View File

@ -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")

View File

@ -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)