Skip to content

Commit

Permalink
fix tunnel
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Mar 21, 2022
1 parent 9edb03e commit 3a63283
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tunnel/handler/tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ func New() *Tunnel {
}
proxy := v.String("")

v, err = config.Get("tunnel.token")
if err != nil {
logger.Fatalf("failed to get token: %v", err)
}

token := v.String("")

v, err = config.Get("tunnel.blocklist")
if err != nil {
logger.Fatalf("failed to get blocklist: %v", err)
Expand Down Expand Up @@ -80,6 +87,7 @@ func New() *Tunnel {
return &Tunnel{
Blocklist: blocklist,
Proxy: proxy,
Token: token,
}
}

Expand Down

0 comments on commit 3a63283

Please sign in to comment.