add server pub key to background process
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is failing
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	continuous-integration/drone/push Build is failing
				
			This commit is contained in:
		@@ -53,8 +53,15 @@ func CheckForMessages(storage_path string, job *client.RequestsJob) (int, string
 | 
				
			|||||||
			//cr.LookupSignature =
 | 
								//cr.LookupSignature =
 | 
				
			||||||
			crl = append(crl, &cr)
 | 
								crl = append(crl, &cr)
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
							// get server public key
 | 
				
			||||||
 | 
							if job.Server.PublicKey == "" {
 | 
				
			||||||
 | 
								key, err := meowlib.HttpGetId(job.Server.Url)
 | 
				
			||||||
 | 
								if err != nil {
 | 
				
			||||||
 | 
									return -1, "CheckMessages: HttpGetId", err
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								job.Server.PublicKey = key["publicKey"]
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
		// build server message
 | 
							// build server message
 | 
				
			||||||
 | 
					 | 
				
			||||||
		var toSrv meowlib.ToServerMessage
 | 
							var toSrv meowlib.ToServerMessage
 | 
				
			||||||
		toSrv.PullRequest = crl
 | 
							toSrv.PullRequest = crl
 | 
				
			||||||
		toSrv.From = job.Server.UserKp.Public
 | 
							toSrv.From = job.Server.UserKp.Public
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user