mirror of
https://github.com/boringproxy/boringproxy.git
synced 2025-02-25 18:55:29 -06:00
Rename borehole to waygate
This commit is contained in:
parent
eaf95f6bea
commit
0211618ac5
@ -19,6 +19,7 @@ import (
|
||||
"github.com/mdp/qrterminal/v3"
|
||||
|
||||
"github.com/takingnames/namedrop-go"
|
||||
"github.com/takingnames/waygate-go"
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
@ -89,6 +90,8 @@ func Listen() {
|
||||
fmt.Printf("WARNING: Failed to access %s:%d from the internet\n", ip, *httpsPort)
|
||||
}
|
||||
|
||||
waygateServer := waygate.NewServer(db)
|
||||
|
||||
autoCerts := true
|
||||
if *httpPort != 80 || *httpsPort != 443 {
|
||||
fmt.Printf("WARNING: LetsEncrypt only supports HTTP/HTTPS ports 80/443. You are using %d/%d. Disabling automatic certificate management\n", *httpPort, *httpsPort)
|
||||
@ -183,6 +186,8 @@ func Listen() {
|
||||
}
|
||||
tlsListener := tls.NewListener(httpListener, tlsConfig)
|
||||
|
||||
http.Handle("/waygate/", http.StripPrefix("/waygate", waygateServer))
|
||||
|
||||
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||
timestamp := time.Now().Format(time.RFC3339)
|
||||
|
||||
|
2
go.mod
2
go.mod
@ -3,12 +3,14 @@ module github.com/boringproxy/boringproxy
|
||||
go 1.17
|
||||
|
||||
//replace github.com/takingnames/namedrop-go => ../namedrop-go
|
||||
replace github.com/takingnames/waygate-go => ../waygate-go
|
||||
|
||||
require (
|
||||
github.com/caddyserver/certmagic v0.15.2
|
||||
github.com/mdp/qrterminal/v3 v3.0.0
|
||||
github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e
|
||||
github.com/takingnames/namedrop-go v0.7.0
|
||||
github.com/takingnames/waygate-go v0.0.0-00010101000000-000000000000
|
||||
golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user