update README

tls
fangdingjun 6 years ago
parent 3a5b7b1bd6
commit c0543037df

@ -19,7 +19,7 @@ server usage example
var l net.Listener
var err error
if useTLS{
if useTLS {
cert, err := tls.LoadX509KeyPair(certFile, keyFile)
l, err = tls.Listen("tcp", ":2022", &tls.Config{
Certificates: []tls.Certificate{cert},
@ -57,7 +57,7 @@ client usage example
var c net.Conn
var err error
if useTLS{
if useTLS {
c, err = tls.Dial("tcp", addr, &tls.Config{
ServerName: "localhost",
InsecureSkipVerify: true,

@ -24,6 +24,6 @@ run client
go get github.com/fangdingjun/obfssh/obfssh
$GOPATH/bin/obfssh_client -N -D :1234 -p 2022 -l user2 -pw user2 localhost
$GOPATH/bin/obfssh -N -D :1234 -p 2022 -l user2 -pw user2 localhost
this will create a socks proxy on :1234

Loading…
Cancel
Save