]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - src/test-network.c
network: Allow creating any valid networks
[people/ms/libloc.git] / src / test-network.c
index 92088ee2a29ed15a7397bd9298f45cdf69100fdb..1d4550cc910b46003e960cd17f2ecffeb0f1a6cb 100644 (file)
@@ -259,13 +259,6 @@ int main(int argc, char** argv) {
                exit(EXIT_FAILURE);
        }
 
-       // Try adding localhost
-       err = loc_writer_add_network(writer, &network, "::1/128");
-       if (err != -EINVAL) {
-               fprintf(stderr, "It was possible to add localhost (::1/128): %d\n", err);
-               exit(EXIT_FAILURE);
-       }
-
        FILE* f = tmpfile();
        if (!f) {
                fprintf(stderr, "Could not open file for writing: %s\n", strerror(errno));