chore: add wireguard html frontend

This commit is contained in:
braginini
2021-11-03 15:23:45 +01:00
parent f519049e63
commit c9b5a0e5fd
8 changed files with 916 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
package main
import (
"fmt"
"log"
"net/http"
)
func main() {
log.Print("listening on http://localhost:9090")
err := http.ListenAndServe(":9090", http.FileServer(http.Dir("/home/braginini/Documents/projects/my/wiretrustee/wiretrustee/browser/assets")))
//err := http.ListenAndServe(":9090", http.FileServer(http.Dir("/home/braginini/Documents/projects/my/wiretrustee/rtctunnel/examples/browser-http/dist")))
if err != nil {
fmt.Println("Failed to start server", err)
return
}
}