mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-28 10:51:44 +01:00 
			
		
		
		
	Fixed linting issues
This commit is contained in:
		
							parent
							
								
									5403f215bc
								
							
						
					
					
						commit
						01d9a2f589
					
				
							
								
								
									
										3
									
								
								app.go
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								app.go
									
									
									
									
									
								
							@ -322,7 +322,8 @@ func (h *Headscale) expireEphemeralNodesWorker() {
 | 
				
			|||||||
func (h *Headscale) grpcAuthenticationInterceptor(ctx context.Context,
 | 
					func (h *Headscale) grpcAuthenticationInterceptor(ctx context.Context,
 | 
				
			||||||
	req interface{},
 | 
						req interface{},
 | 
				
			||||||
	info *grpc.UnaryServerInfo,
 | 
						info *grpc.UnaryServerInfo,
 | 
				
			||||||
	handler grpc.UnaryHandler) (interface{}, error) {
 | 
						handler grpc.UnaryHandler,
 | 
				
			||||||
 | 
					) (interface{}, error) {
 | 
				
			||||||
	// Check if the request is coming from the on-server client.
 | 
						// Check if the request is coming from the on-server client.
 | 
				
			||||||
	// This is not secure, but it is to maintain maintainability
 | 
						// This is not secure, but it is to maintain maintainability
 | 
				
			||||||
	// with the "legacy" database-based client
 | 
						// with the "legacy" database-based client
 | 
				
			||||||
 | 
				
			|||||||
@ -122,7 +122,7 @@ func (h *Headscale) DERPHandler(ctx *gin.Context) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	if !fastStart {
 | 
						if !fastStart {
 | 
				
			||||||
		pubKey := h.privateKey.Public()
 | 
							pubKey := h.privateKey.Public()
 | 
				
			||||||
		pubKeyStr := pubKey.UntypedHexString() // nolint
 | 
							pubKeyStr := pubKey.UntypedHexString()
 | 
				
			||||||
		fmt.Fprintf(conn, "HTTP/1.1 101 Switching Protocols\r\n"+
 | 
							fmt.Fprintf(conn, "HTTP/1.1 101 Switching Protocols\r\n"+
 | 
				
			||||||
			"Upgrade: DERP\r\n"+
 | 
								"Upgrade: DERP\r\n"+
 | 
				
			||||||
			"Connection: Upgrade\r\n"+
 | 
								"Connection: Upgrade\r\n"+
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user