Skip to content

Commit

Permalink
Secure External Links on Server Side to Master Only
Browse files Browse the repository at this point in the history
  • Loading branch information
jaruba committed Jul 17, 2020
1 parent ca83c02 commit e9c9b6e
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1525,25 +1525,25 @@ const mainServer = http.createServer(function(req, resp) {
return
}

if (method == 'jackettLink') {
shell.openExternal('https://github.com/jaruba/PowderWeb/wiki/Enable-Jackett')
respond({})
return
}
if (isMaster) {

if (method == 'donateLink') {
shell.openExternal('https://powder.media/donate')
respond({})
return
}
if (method == 'jackettLink') {
shell.openExternal('https://github.com/jaruba/PowderWeb/wiki/Enable-Jackett')
respond({})
return
}

if (method == 'sopGuideLink') {
shell.openExternal('https://github.com/jaruba/PowderWeb/wiki/Enable-Sopcast')
respond({})
return
}
if (method == 'donateLink') {
shell.openExternal('https://powder.media/donate')
respond({})
return
}

if (isMaster) {
if (method == 'sopGuideLink') {
shell.openExternal('https://github.com/jaruba/PowderWeb/wiki/Enable-Sopcast')
respond({})
return
}

if (method == 'openInBrowser') {
const isSSL = config.get('webServerSSL') || false
Expand Down

0 comments on commit e9c9b6e

Please sign in to comment.