fix gosec
This commit is contained in:
		
							parent
							
								
									ce530705e7
								
							
						
					
					
						commit
						014abbc41e
					
				@ -117,9 +117,8 @@ func (ns *NotificationServerBundle) Send(message string) error {
 | 
			
		||||
		verifySSL = true
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/* #nosec */
 | 
			
		||||
	transCfg := &http.Transport{
 | 
			
		||||
		TLSClientConfig: &tls.Config{InsecureSkipVerify: verifySSL},
 | 
			
		||||
		TLSClientConfig: &tls.Config{InsecureSkipVerify: verifySSL}, // #nosec G402
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	client := &http.Client{Transport: transCfg, Timeout: time.Minute * 10}
 | 
			
		||||
 | 
			
		||||
@ -1,8 +1,6 @@
 | 
			
		||||
package singleton
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	// #nosec
 | 
			
		||||
 | 
			
		||||
	"fmt"
 | 
			
		||||
	"log"
 | 
			
		||||
	"sync"
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user