Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrapmodule affects not just the wrapped module #158

Open
CyberShadow opened this issue Jan 8, 2022 · 0 comments
Open

wrapmodule affects not just the wrapped module #158

CyberShadow opened this issue Jan 8, 2022 · 0 comments

Comments

@CyberShadow
Copy link

wrapmodule is defined simply as:

module.socket.socket = socksocket

However, that will affect not just the socket function as it is visible from the module, but from everywhele else as well. Therefore, e.g. socks.wrapmodule(smtplib) will affect the entire application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant