quictun

package module
v0.0.0-...-1b220cf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2017 License: MIT Imports: 8 Imported by: 0

README

quictun

QUIC tunnel

get free TLS certificates

https://letsencrypt.org

start server on remote machine

quictun_server -addr :1443 -cert server.cert -key server.key -target 127.0.0.1:8888

start client on local machine with domain

quictun_client -addr :1083 -target quictun-server-domain.com:1443

TODO

  • client & server auth
  • optimize bandwdith (compare with KCPTUN)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeautifyDuration

func BeautifyDuration(d time.Duration) string

Duration to e.g. 432ms or 12s, human readable translation

func BeautifySize

func BeautifySize(s int64) string

func Proxy

func Proxy(conn, targetConn net.Conn)

Types

type StreamConn

type StreamConn struct {
	quic.Stream
	// contains filtered or unexported fields
}

func NewStreamConn

func NewStreamConn(sess quic.Session, stream quic.Stream) StreamConn

func (StreamConn) LocalAddr

func (s StreamConn) LocalAddr() net.Addr

func (StreamConn) RemoteAddr

func (s StreamConn) RemoteAddr() net.Addr

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL