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

Set HTTP hostname based on TLS server name #350

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Dec 21, 2021

  1. Set HTTP hostname based on TLS server name

    The net/http library uses the Host field from the Request object in
    order to determine the value of the Host header [1]. In order for the
    Prometheus client to support SNI, it needs to set this field to the
    value provided in the TLS server name.
    
    [1] golang/go#29865
    
    Signed-off-by: fpetkovski <[email protected]>
    fpetkovski committed Dec 21, 2021
    Configuration menu
    Copy the full SHA
    c81c25d View commit details
    Browse the repository at this point in the history