loading up the forgejo repo on tangled to test page performance
1// Copyright 2020 The Gitea Authors. All rights reserved. 2// SPDX-License-Identifier: MIT 3 4package proxyprotocol 5 6import "io" 7 8var localHeader = append(v2Prefix, '\x20', '\x00', '\x00', '\x00', '\x00') 9 10// WriteLocalHeader will write the ProxyProtocol Header for a local connection to the provided writer 11func WriteLocalHeader(w io.Writer) error { 12 _, err := w.Write(localHeader) 13 return err 14}