You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Wagum d454abafd8
created test for getSNIServerName
created test for getSNIServerName
5 years ago
.gitignore add License 7 years ago
LICENSE add License 7 years ago
README.md fix a typo 7 years ago
common.go first version 7 years ago
conf.go first version 7 years ago
conf_test.go change log library 6 years ago
config.sample.yaml add support to send proxy protocol to dst 6 years ago
go.mod update go.mod 5 years ago
go.sum update go.mod 5 years ago
handshake_messages.go first version 7 years ago
main.go Update main.go 5 years ago
main_test.go created test for getSNIServerName 5 years ago
proto_test.go use context to graceful shutdown 6 years ago

README.md

Sniproxy

A SNI proxy implements by golang

it can forward the TLS request to different backend by different SNI name

Usage

go get github.com/fangdingjun/sniproxy
cp $GOPATH/src/github.com/fangdingjun/sniproxy/config.sample.yaml config.yaml
vim config.yaml
$GOPATH/bin/sniproxy -c config.yaml