]> git.ipfire.org Git - location/libloc.git/blobdiff - src/python/locationmodule.c
Implement an additional flag for hostile networks safe to drop
[location/libloc.git] / src / python / locationmodule.c
index 5b72be9b0f9fbfe1df62dc00064d52691a51d1bd..5dd4ec645ccf3854950906980cd7c46db3f66946 100644 (file)
@@ -1,7 +1,7 @@
 /*
        libloc - A library to determine the location of someone on the Internet
 
-       Copyright (C) 2017 IPFire Development Team <info@ipfire.org>
+       Copyright (C) 2017-2021 IPFire Development Team <info@ipfire.org>
 
        This library is free software; you can redistribute it and/or
        modify it under the terms of the GNU Lesser General Public
@@ -169,6 +169,9 @@ PyMODINIT_FUNC PyInit__location(void) {
        if (PyModule_AddIntConstant(m, "NETWORK_FLAG_ANYCAST", LOC_NETWORK_FLAG_ANYCAST))
                return NULL;
 
+       if (PyModule_AddIntConstant(m, "NETWORK_FLAG_DROP", LOC_NETWORK_FLAG_DROP))
+               return NULL;
+
        // Add latest database version
        if (PyModule_AddIntConstant(m, "DATABASE_VERSION_LATEST", LOC_DATABASE_VERSION_LATEST))
                return NULL;