selftest: Use new helper function for client's smb.conf IP
authorTim Beale <timbeale@catalyst.net.nz>
Tue, 12 Mar 2019 01:04:21 +0000 (14:04 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 14 Mar 2019 02:12:19 +0000 (02:12 +0000)
This has the side-effect of giving the client an IPv6 address, which it
hasn't had up until now. But it at least makes the client and server
interfaces settings consistent, and gets rid of a hard-coded IP address.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/selftest.pl

index 37e288e456f813e06ffd61854730a3acec77a0e9..919a9d50177c58ccae7c14375a58a79e0a0cf393 100755 (executable)
@@ -511,7 +511,7 @@ foreach (@opt_include) {
        push (@includes, read_test_regexes($_));
 }
 
-my $interfaces = "127.0.0.11/8";
+my $interfaces = Samba::get_interfaces_config("client");
 
 my $clientdir = "$prefix_abs/client";