Skip to content

wrapmodule affects not just the wrapped module #158

Open
@CyberShadow

Description

@CyberShadow

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions