Compare commits
No commits in common. "5d94a64efec125f0c4440a4fa9faea96f76039b7" and "bc35aece9b9ce370f1f388b10dd46a180aed4351" have entirely different histories.
5d94a64efe
...
bc35aece9b
2 changed files with 0 additions and 10 deletions
|
@ -42,9 +42,5 @@ func CreateConfig(path string, cfg *Config) {
|
|||
cfg.Zerooo.Location = filepath.Join(filepath.Dir(path), cfg.Zerooo.Location)
|
||||
}
|
||||
|
||||
if cfg.Zerooo.Endpoint == "" {
|
||||
cfg.Zerooo.Endpoint = "https://zer.ooo"
|
||||
}
|
||||
|
||||
Check(err, "Couldn't parse %q, err: %s", path, err)
|
||||
}
|
||||
|
|
6
http.go
6
http.go
|
@ -8,9 +8,7 @@ import (
|
|||
"encoding/json"
|
||||
"errors"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"net/http"
|
||||
"strings"
|
||||
)
|
||||
|
||||
import "golang.org/x/crypto/blowfish"
|
||||
|
@ -58,13 +56,11 @@ func NewHttpServer(manager *Manager) *httpServer {
|
|||
|
||||
func (it *httpServer) Start() {
|
||||
http.HandleFunc("/", func(writer http.ResponseWriter, request *http.Request) {
|
||||
log.Printf("%s /", strings.ToUpper(request.Method))
|
||||
writer.WriteHeader(200)
|
||||
writer.Write([]byte("Don't"))
|
||||
})
|
||||
|
||||
http.HandleFunc("/create-csr", func(writer http.ResponseWriter, request *http.Request) {
|
||||
log.Printf("%s /create-csr", strings.ToUpper(request.Method))
|
||||
req := &CreateCSRRequest{}
|
||||
err := it.verifyRequest(request, req)
|
||||
|
||||
|
@ -85,7 +81,6 @@ func (it *httpServer) Start() {
|
|||
})
|
||||
|
||||
http.HandleFunc("/deliver-crt", func(writer http.ResponseWriter, request *http.Request) {
|
||||
log.Printf("%s /deliver-crt", strings.ToUpper(request.Method))
|
||||
req := &DeliverCertificateRequest{}
|
||||
err := it.verifyRequest(request, req)
|
||||
if err != nil {
|
||||
|
@ -103,7 +98,6 @@ func (it *httpServer) Start() {
|
|||
})
|
||||
|
||||
http.HandleFunc("/update-openvpn-config", func(writer http.ResponseWriter, request *http.Request) {
|
||||
log.Printf("%s /update-openvpn-config", strings.ToUpper(request.Method))
|
||||
req := &UpdateOpenVPNConfigRequest{}
|
||||
err := it.verifyRequest(request, req)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue