Skip to content

fix: allow to specify custom signatureKey in the config.ini #1024

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Mar 27, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update main.go
Co-authored-by: Luca Rinaldi <[email protected]>
  • Loading branch information
dido18 and lucarin91 authored Mar 26, 2025
commit 27e570e7247d2f58a8b8d44bd8ba972b10f6103f
7 changes: 2 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,8 @@ func loop() {
}
}

if signatureKey == nil {
log.Panicf("signature public key cannot be nil")
}
if len(*signatureKey) == 0 {
log.Panicf("signature public key cannot be empty")
if signatureKey == nil || len(*signatureKey) == 0 {
log.Panicf("signature public key should be set")
}
signaturePubKey, err := utilities.ParseRsaPublicKey([]byte(*signatureKey))
if err != nil {
Expand Down
Loading