diff options
author | borna-blazevic <54031251+borna-blazevic@users.noreply.github.com> | 2019-08-14 10:20:28 +0200 |
---|---|---|
committer | Pablo Mazzini <pmazzini@gmail.com> | 2019-08-14 09:20:28 +0100 |
commit | 393ae75a101b4e8d93f82dd7242401dd50ac0868 (patch) | |
tree | 725ec5a42fd2066e71ba284bb9823d08bb0d138b /dhcpv4/server4/server_test.go | |
parent | 6d0d21cc633742eb4de9b08ad7a53572a6907623 (diff) |
Bind interface fix (#310)
Added a bind to interface functionality.
Diffstat (limited to 'dhcpv4/server4/server_test.go')
-rw-r--r-- | dhcpv4/server4/server_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcpv4/server4/server_test.go b/dhcpv4/server4/server_test.go index d24d49b..a596d04 100644 --- a/dhcpv4/server4/server_test.go +++ b/dhcpv4/server4/server_test.go @@ -73,7 +73,7 @@ func setUpClientAndServer(t *testing.T, iface net.Interface, handler Handler) (* IP: loAddr, Port: randPort(), } - s, err := NewServer(&saddr, handler) + s, err := NewServer("", &saddr, handler) if err != nil { t.Fatal(err) } @@ -81,7 +81,7 @@ func setUpClientAndServer(t *testing.T, iface net.Interface, handler Handler) (* _ = s.Serve() }() - clientConn, err := nclient4.NewIPv4UDPConn("", caddr.Port) + clientConn, err := NewIPv4UDPConn("", caddr.Port) if err != nil { t.Fatal(err) } |