Skip to content

Commit

Permalink
Update handlers.go
Browse files Browse the repository at this point in the history
  • Loading branch information
JonCooperWorks authored May 4, 2020
1 parent ae1ce66 commit 1378528
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,6 @@ func (wh *WireguardHandlers) newDeviceHandler(c *gin.Context) {
ParseFiles(filepath.Join(wh.config.TemplatesDirectory, "ini/peerconfig.tmpl")),
)

if err != nil {
log.Println(err)
c.AbortWithStatus(http.StatusInternalServerError)
return
}

peerConfigINI := &PeerConfigINI{
PublicKey: device.PublicKey,
PrivateKey: credentials.PrivateKey,
Expand Down

0 comments on commit 1378528

Please sign in to comment.