{"id":13775795,"url":"https://github.com/armon/go-proxyproto","last_synced_at":"2025-05-16T00:00:30.254Z","repository":{"id":14809523,"uuid":"17531874","full_name":"armon/go-proxyproto","owner":"armon","description":"Golang package to handle HAProxy Proxy Protocol","archived":false,"fork":false,"pushed_at":"2023-11-06T17:55:38.000Z","size":15,"stargazers_count":199,"open_issues_count":3,"forks_count":53,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-08T10:34:50.863Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/armon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2014-03-08T00:43:46.000Z","updated_at":"2025-02-01T13:40:56.000Z","dependencies_parsed_at":"2024-01-07T22:56:11.738Z","dependency_job_id":null,"html_url":"https://github.com/armon/go-proxyproto","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armon%2Fgo-proxyproto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armon%2Fgo-proxyproto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armon%2Fgo-proxyproto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armon%2Fgo-proxyproto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/armon","download_url":"https://codeload.github.com/armon/go-proxyproto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254442854,"owners_count":22071877,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T17:01:50.230Z","updated_at":"2025-05-16T00:00:30.184Z","avatar_url":"https://github.com/armon.png","language":"Go","funding_links":[],"categories":["\u003ca id=\"d03d494700077f6a65092985c06bf8e8\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"d3069cac6097830d12f5933c9c8b7a77\"\u003e\u003c/a\u003eHAProxy"],"readme":"# proxyproto\n\nThis library provides the `proxyproto` package which can be used for servers\nlistening behind HAProxy of Amazon ELB load balancers. Those load balancers\nsupport the use of a proxy protocol (http://haproxy.1wt.eu/download/1.5/doc/proxy-protocol.txt),\nwhich provides a simple mechansim for the server to get the address of the client\ninstead of the load balancer.\n\nThis library provides both a net.Listener and net.Conn implementation that\ncan be used to handle situation in which you may be using the proxy protocol.\nOnly proxy protocol version 1, the human-readable form, is understood.\n\nThe only caveat is that we check for the \"PROXY \" prefix to determine if the protocol\nis being used. If that string may occur as part of your input, then it is ambiguous\nif the protocol is being used and you may have problems.\n\n# Documentation\n\nFull documentation can be found [here](http://godoc.org/github.com/armon/go-proxyproto).\n\n# Examples\n\nUsing the library is very simple:\n\n```\n\n// Create a listener\nlist, err := net.Listen(\"tcp\", \"...\")\n\n// Wrap listener in a proxyproto listener\nproxyList := \u0026proxyproto.Listener{Listener: list}\nconn, err :=proxyList.Accept()\n\n...\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmon%2Fgo-proxyproto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farmon%2Fgo-proxyproto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmon%2Fgo-proxyproto/lists"}