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

feat: add support for the PROXY protocol #184

Draft
wants to merge 130 commits into
base: master
Choose a base branch
from

Commits on May 31, 2024

  1. Configuration menu
    Copy the full SHA
    1b82d33 View commit details
    Browse the repository at this point in the history
  2. Remove unused fakeAddr.

    sbruens committed May 31, 2024
    Configuration menu
    Copy the full SHA
    a4c2007 View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2024

  1. Configuration menu
    Copy the full SHA
    72b27d7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fddfc57 View commit details
    Browse the repository at this point in the history
  3. Remove commented out line.

    sbruens committed Jun 3, 2024
    Configuration menu
    Copy the full SHA
    c1ee12f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    354301e View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2024

  1. Configuration menu
    Copy the full SHA
    751d164 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6297304 View commit details
    Browse the repository at this point in the history
  3. Remove unused GetPort().

    sbruens committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    0ac0a72 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    794f860 View commit details
    Browse the repository at this point in the history
  5. Remove use of net.Addr type.

    sbruens committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    01b7e8a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    87a1565 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2024

  1. Configuration menu
    Copy the full SHA
    51a13a7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f8d7aa5 View commit details
    Browse the repository at this point in the history
  3. Fix accept handler.

    sbruens committed Jun 14, 2024
    Configuration menu
    Copy the full SHA
    1952036 View commit details
    Browse the repository at this point in the history
  4. Add doc comment.

    sbruens committed Jun 14, 2024
    Configuration menu
    Copy the full SHA
    7212265 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6e2068d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7114434 View commit details
    Browse the repository at this point in the history
  7. Lowercase readConfig.

    sbruens committed Jun 14, 2024
    Configuration menu
    Copy the full SHA
    1b2dd42 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2024

  1. Configuration menu
    Copy the full SHA
    744b2cf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c5fb99a View commit details
    Browse the repository at this point in the history
  3. Update config test.

    sbruens committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    802e689 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e085d4c View commit details
    Browse the repository at this point in the history
  5. Move listeners into tcp.go.

    sbruens committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    98ccbce View commit details
    Browse the repository at this point in the history
  6. Fix tests.

    sbruens committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    d83e6ba View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    870b379 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    00d484b View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2024

  1. Configuration menu
    Copy the full SHA
    4ce06f0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8660032 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    26b9100 View commit details
    Browse the repository at this point in the history
  4. Fix tests.

    sbruens committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    1b8e903 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    442b927 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4216ce3 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    35c828d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    1322f2d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    adc11f2 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2024

  1. Add comment describing keys.

    sbruens committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    3084dfd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7e5aae5 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2024

  1. Configuration menu
    Copy the full SHA
    b136c79 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4bf9c27 View commit details
    Browse the repository at this point in the history
  3. Simplify how we create new listeners.

    This does not yet deal with reused sockets.
    sbruens committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    b7bb65b View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2024

  1. Do not use io.Closer.

    sbruens committed Jun 28, 2024
    Configuration menu
    Copy the full SHA
    af3ca31 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2024

  1. Use an inline error check.

    sbruens committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    fc72593 View commit details
    Browse the repository at this point in the history
  2. Use shared listeners and packet connections.

    This allows us to reload a config while the existing one is still
    running. They share the same underlying listener, which is actually
    closed when the last user closes it.
    sbruens committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    b24a339 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3bc76bc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f71b13d View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2024

  1. Configuration menu
    Copy the full SHA
    6893e2a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    32cc180 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2024

  1. Configuration menu
    Copy the full SHA
    640f80f View commit details
    Browse the repository at this point in the history
  2. Use yaml.v3.

    sbruens committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    22638c7 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2024

  1. Configuration menu
    Copy the full SHA
    2631b87 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d76efd2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b8c5ab8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5ac0f46 View commit details
    Browse the repository at this point in the history
  5. Remove commented out lines.

    sbruens committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    1f097be View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    80b25b1 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2070d40 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    eacfa0e View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2024

  1. Configuration menu
    Copy the full SHA
    dc1075a View commit details
    Browse the repository at this point in the history
  2. Pass TCP timeout to service.

    sbruens committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    2a343e2 View commit details
    Browse the repository at this point in the history
  3. Move go routine call up.

    sbruens committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    e58b79d View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2024

  1. Configuration menu
    Copy the full SHA
    c7465fb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    43fa0d6 View commit details
    Browse the repository at this point in the history
  3. Refactor how we create listeners.

    We introduce shared listeners that allow us to keep an old config
    running while we set up a new config. This is done by keeping track of
    the usage of the listeners and only closing them when the last user is
    done with the shared listener.
    sbruens committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    cf9b7d2 View commit details
    Browse the repository at this point in the history
  4. Update comments.

    sbruens committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    ae7f41d View commit details
    Browse the repository at this point in the history
  5. go mod tidy.

    sbruens committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    120db8e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5cbeb54 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2024

  1. Configuration menu
    Copy the full SHA
    d705603 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2fb4a6b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d2ef46e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ab07400 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    71d7140 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9dfa4e2 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2024

  1. Make a StreamListener type.

    sbruens committed Jul 19, 2024
    Configuration menu
    Copy the full SHA
    0a63f5c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f018d17 View commit details
    Browse the repository at this point in the history
  3. Rename globalListener.

    sbruens committed Jul 19, 2024
    Configuration menu
    Copy the full SHA
    4295c45 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e6963f6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7113f02 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2024

  1. Configuration menu
    Copy the full SHA
    e4d679f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    be5f9b0 View commit details
    Browse the repository at this point in the history
  3. Move listener set to main.go.

    sbruens committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    343e412 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7f86ff1 View commit details
    Browse the repository at this point in the history
  5. Update comment.

    sbruens committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    e80b2c5 View commit details
    Browse the repository at this point in the history
  6. Address review comments.

    sbruens committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    b1428ed View commit details
    Browse the repository at this point in the history
  7. Close before deleting key.

    sbruens committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    1c16de8 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ebc7053 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    67fc7fb View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    7a15e7d View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    499829e View commit details
    Browse the repository at this point in the history
  12. Remove atomic.Value.

    sbruens committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    f165dbd View commit details
    Browse the repository at this point in the history
  13. Add some missing comments.

    sbruens committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    2a2420a View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2024

  1. Configuration menu
    Copy the full SHA
    8178d78 View commit details
    Browse the repository at this point in the history
  2. address review comments

    sbruens committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    cccba1a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    da4ccaa View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d47f612 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a928e2c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    98cc3a0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    48d0931 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2dec847 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2024

  1. Configuration menu
    Copy the full SHA
    ab22e47 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2024

  1. Configuration menu
    Copy the full SHA
    3c2a3ef View commit details
    Browse the repository at this point in the history
  2. Return immediately.

    sbruens committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    5e282f1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    547e9e6 View commit details
    Browse the repository at this point in the history
  4. Simplify listenAddr.

    sbruens committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    c6774c8 View commit details
    Browse the repository at this point in the history
  5. Fix use of the ref count.

    sbruens committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    df2f9d0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c678372 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e41abab View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b626a1c View commit details
    Browse the repository at this point in the history
  9. Create handlers on demand.

    sbruens committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    f9432d2 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2024

  1. Configuration menu
    Copy the full SHA
    f43fbec View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2024

  1. Refactor create methods.

    sbruens committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    6b11f4f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3e03394 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    37678cf View commit details
    Browse the repository at this point in the history
  4. Use errors.Is().

    sbruens committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    9924713 View commit details
    Browse the repository at this point in the history
  5. Fix proxy post-merge.

    sbruens committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    c8d8332 View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2024

  1. Configuration menu
    Copy the full SHA
    827be3c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2622b5e View commit details
    Browse the repository at this point in the history
  3. Address review comments.

    sbruens committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    fe8bbdd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    36a0a1d View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2024

  1. Move mutex up.

    sbruens committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    aeb2652 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8873b10 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    899d13d View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2024

  1. Configuration menu
    Copy the full SHA
    80e5d49 View commit details
    Browse the repository at this point in the history
  2. Use / in key instead of -.

    sbruens committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    aa00f2e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e658b90 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fede4d8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4730d74 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    30bbdfa View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2024

  1. Configuration menu
    Copy the full SHA
    57d46a2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    baea2a2 View commit details
    Browse the repository at this point in the history