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

Do not exit the server loop on obfs4 connection errors #901

Merged
merged 1 commit into from Jan 19, 2023

Commits on Nov 30, 2022

  1. Do not exit the server loop on obfs4 connection errors

    obfs4Listener.Accept() returns an error when obfs4 handshake fails, which in
    practice happens routinely when someone scans a machine that has an open
    listening port.
    
    Currently the accept loop in server.go exits on first such error, which makes
    further connections to the same port impossible.
    
    This change wraps obfs4 handshake errors into a custom error type that
    satisfies net.Error and presents itself as temporary, which will prevent such
    errors from aborting the server.
    knyar committed Nov 30, 2022
    Configuration menu
    Copy the full SHA
    a9600f6 View commit details
    Browse the repository at this point in the history