Compare commits
4 Commits
0557b4d06d
...
d33787e4d9
Author | SHA1 | Date |
---|---|---|
bugmaker9371 | d33787e4d9 | |
Daniel Liu | 5e1a39d67f | |
Felix Lange | f8b5fe3c3d | |
bugmaker9371 | 56cafb22ca |
|
@ -90,7 +90,7 @@ func (f *DirectoryFlag) Apply(set *flag.FlagSet) error {
|
|||
}
|
||||
}
|
||||
eachName(f, func(name string) {
|
||||
set.Var(&f.Value, f.Name, f.Usage)
|
||||
set.Var(&f.Value, name, f.Usage)
|
||||
})
|
||||
return nil
|
||||
}
|
||||
|
@ -172,7 +172,7 @@ func (f *BigFlag) Apply(set *flag.FlagSet) error {
|
|||
}
|
||||
eachName(f, func(name string) {
|
||||
f.Value = new(big.Int)
|
||||
set.Var((*bigValue)(f.Value), f.Name, f.Usage)
|
||||
set.Var((*bigValue)(f.Value), name, f.Usage)
|
||||
})
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -239,6 +239,8 @@ func checkNodesEqual(got, want []*enode.Node) error {
|
|||
goto NotEqual
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return fmt.Errorf("length dismatch: got %d nodes, want %d nodes", len(got), len(want))
|
||||
}
|
||||
return nil
|
||||
|
||||
|
|
|
@ -90,7 +90,7 @@ func startLocalhostV5(t *testing.T, cfg Config) *UDPv5 {
|
|||
}
|
||||
realaddr := socket.LocalAddr().(*net.UDPAddr)
|
||||
ln.SetStaticIP(realaddr.IP)
|
||||
ln.Set(enr.UDP(realaddr.Port))
|
||||
ln.SetFallbackUDP(realaddr.Port)
|
||||
udp, err := ListenV5(socket, ln, cfg)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
|
Loading…
Reference in New Issue