Limit number of webpush subscriptions per subscriber IP
This commit is contained in:
		
							parent
							
								
									c43a1166e2
								
							
						
					
					
						commit
						341e84f643
					
				
					 5 changed files with 95 additions and 16 deletions
				
			
		|  | @ -35,8 +35,7 @@ func generateWebPushKeys(c *cli.Context) error { | |||
| 	if err != nil { | ||||
| 		return err | ||||
| 	} | ||||
| 
 | ||||
| 	fmt.Fprintf(c.App.ErrWriter, `Web Push keys generated. Add the following lines to your config file: | ||||
| 	_, err = fmt.Fprintf(c.App.ErrWriter, `Web Push keys generated. Add the following lines to your config file: | ||||
| 
 | ||||
| web-push-public-key: %s | ||||
| web-push-private-key: %s | ||||
|  | @ -45,6 +44,5 @@ web-push-email-address: <email address> | |||
| 
 | ||||
| See https://ntfy.sh/docs/config/#web-push for details. | ||||
| `, publicKey, privateKey) | ||||
| 
 | ||||
| 	return nil | ||||
| 	return err | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue