mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Add --address to kubectl proxy
This commit is contained in:
		@@ -179,8 +179,8 @@ func NewProxyServer(filebase string, apiProxyPrefix string, staticPrefix string,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Listen is a simple wrapper around net.Listen.
 | 
			
		||||
func (s *ProxyServer) Listen(port int) (net.Listener, error) {
 | 
			
		||||
	return net.Listen("tcp", fmt.Sprintf("127.0.0.1:%d", port))
 | 
			
		||||
func (s *ProxyServer) Listen(address string, port int) (net.Listener, error) {
 | 
			
		||||
	return net.Listen("tcp", fmt.Sprintf("%s:%d", address, port))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// ListenUnix does net.Listen for a unix socket
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user