mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-07-09 13:58:25 +02:00
Merge branch '1.1.10'
This commit is contained in:
@@ -21,8 +21,8 @@ RestrictSUIDSGID=true
|
||||
MemoryDenyWriteExecute=true
|
||||
Restart=always
|
||||
RestartSec=5s
|
||||
StartLimitBurst=3 # Allow max 3 restart attempts
|
||||
StartLimitInterval=60s # Within 60 seconds
|
||||
StartLimitBurst=3
|
||||
StartLimitInterval=60s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -508,6 +508,10 @@ func (u *Update) verifySignature(binaryPath, sigPath string) error {
|
||||
}
|
||||
|
||||
func (u *Update) CheckUpdateVersion(currentVersion, latestVersion string) (bool, error) {
|
||||
if !build.Flags.Production {
|
||||
// ignroe version in development
|
||||
return false, nil
|
||||
}
|
||||
// The semver package expects versions to be prefixed with 'v'
|
||||
current := ensureVPrefix(currentVersion)
|
||||
latest := ensureVPrefix(latestVersion)
|
||||
|
||||
Reference in New Issue
Block a user