mirror of https://github.com/python/cpython
Issue #12619: Expose socket.SO_BINDTODEVICE constant
This commit is contained in:
parent
8b905bd9d4
commit
cb98bed299
|
@ -5772,6 +5772,9 @@ PyInit__socket(void)
|
|||
#ifdef LOCAL_PEERCRED
|
||||
PyModule_AddIntConstant(m, "LOCAL_PEERCRED", LOCAL_PEERCRED);
|
||||
#endif
|
||||
#ifdef SO_BINDTODEVICE
|
||||
PyModule_AddIntMacro(m, SO_BINDTODEVICE);
|
||||
#endif
|
||||
|
||||
/* Maximum number of connections for "listen" */
|
||||
#ifdef SOMAXCONN
|
||||
|
|
Loading…
Reference in New Issue