Skip to content

issue sock.setsockopt - suggested correction #32

@Soraya28

Description

@Soraya28

sock.setsockopt(socket.SOL_SOCKET, 25, 1)

Hi everyone,

Thanks a lot for this very useful toolbox.

I have come across an issue line 193 that I have corrected, see below. Otherwise, everything is working fine !

Issue :
TypeError: a bytes-like object is required, not 'str'

Correction suggested :
sock.setsockopt(socket.SOL_SOCKET, 25, (self.iface_name+'\0').encode())

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