/
uzer_007
/
Rixea
Обзор
Документация
Войти
/
uzer_007
/
Rixea
Код
Запросы
0
Задачи
Вики
Пакеты
5
Релизы
2
CI/CD
Аналитика
Безопасность
master
modules/proxyprotocol/util.go
14 строк
385 B
uzer_007
feat: первая версия Rixea
02 авг 2026, 22:16
02 авг 2026, 22:16
d4f7504
Код
Авторство
О чём код?
// Copyright 2026 Uzer_007. All rights reserved. // SPDX-License-Identifier: MIT package proxyprotocol import "io" var localHeader = append(v2Prefix, '\x20', '\x00', '\x00', '\x00', '\x00') // WriteLocalHeader will write the ProxyProtocol Header for a local connection to the provided writer func WriteLocalHeader(w io.Writer) error { _, err := w.Write(localHeader) return err }