Skip to content

Commit ce6e329

Browse files
authored
Merge pull request #164 from akakou/develop
Develop
2 parents a730c7b + 9c275bc commit ce6e329

File tree

22 files changed

+271
-330
lines changed

22 files changed

+271
-330
lines changed

test/adversary_example/main.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,24 @@ package main
22

33
import (
44
"crypto/tls"
5+
"fmt"
56
"net/http"
67

78
"github.com/labstack/echo/v4"
89
"golang.org/x/crypto/acme"
910
"golang.org/x/crypto/acme/autocert"
1011
)
1112

13+
var VerifierBase = "https://rare-charter-vancouver-many.trycloudflare.com"
14+
1215
func main() {
1316
e := echo.New()
1417

18+
body := "<button onclick=\"window.open('%v/app/verification-status/');\">Verifier Page (https://rare-charter-vancouver-many.trycloudflare.com)</button><br/>"
19+
body = fmt.Sprintf(body, VerifierBase)
20+
1521
e.GET("/", func(c echo.Context) error {
16-
return c.String(http.StatusOK, "Hello, World!")
22+
return c.HTML(http.StatusOK, body)
1723
})
1824

1925
autoTLSManager := autocert.Manager{

verifier/api/register.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ func RegisterServer(req *core.ServerRequest, code *ent.TACode, service *ent.Serv
127127
SetCode(code).
128128
SetPublicKey(req.PublicKey).
129129
SetQuote(req.Quote).
130+
SetMonitorLogID(0).
130131
SetIsActive(false)
131132

132133
_, err := taServerCreate.Save(*verifier.DB.Ctx)

verifier/api/server_test.go

Lines changed: 0 additions & 71 deletions
This file was deleted.

verifier/ent/migrate/schema.go

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)