File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -285,9 +285,12 @@ func loop() {
285
285
if len (* signatureKey ) == 0 {
286
286
log .Panicf ("signature public key cannot be empty" )
287
287
}
288
- signaturePubKey , err := utilities .ParseRsaPublicKey (* signatureKey )
288
+ fmt .Println ("Signature key:" , * signatureKey )
289
+
290
+ // when a public key is read fro the .ini file, the '\n' are escape with an additional '\', we need to replace them with '\n'
291
+ signaturePubKey , err := utilities .ParseRsaPublicKey (strings .ReplaceAll (* signatureKey , "\\ n" , "\n " ))
289
292
if err != nil {
290
- log .Panicf ("cannot parse signature key: %s" , err )
293
+ log .Panicf ("cannot parse signature key '%s'. %s" , * signatureKey , err )
291
294
}
292
295
293
296
// Instantiate Index and Tools
@@ -539,6 +542,8 @@ func parseIni(filename string) (args []string, err error) {
539
542
return nil , err
540
543
}
541
544
545
+ fmt .Println ("Sections:" , cfg .Sections ())
546
+
542
547
for _ , section := range cfg .Sections () {
543
548
for key , val := range section .KeysHash () {
544
549
// Ignore launchself
You can’t perform that action at this time.
0 commit comments