mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-28 10:51:44 +01:00 
			
		
		
		
	Fixed error on assign
This commit is contained in:
		
							parent
							
								
									36ae14bccf
								
							
						
					
					
						commit
						19492650d4
					
				
							
								
								
									
										2
									
								
								api.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								api.go
									
									
									
									
									
								
							@ -249,7 +249,7 @@ func (h *Headscale) getMapResponse(mKey wgkey.Key, req tailcfg.MapRequest, m Mac
 | 
				
			|||||||
		if err != nil {
 | 
							if err != nil {
 | 
				
			||||||
			return nil, err
 | 
								return nil, err
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		dnsConfig := h.cfg.DNSConfig.Clone()
 | 
							dnsConfig = h.cfg.DNSConfig.Clone()
 | 
				
			||||||
		for _, ns := range *namespaces {
 | 
							for _, ns := range *namespaces {
 | 
				
			||||||
			dnsConfig.Domains = append(dnsConfig.Domains, fmt.Sprintf("%s.%s", ns.Name, h.cfg.BaseDomain))
 | 
								dnsConfig.Domains = append(dnsConfig.Domains, fmt.Sprintf("%s.%s", ns.Name, h.cfg.BaseDomain))
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
				
			|||||||
@ -118,6 +118,7 @@ func GetDNSConfig() (*tailcfg.DNSConfig, string) {
 | 
				
			|||||||
		} else {
 | 
							} else {
 | 
				
			||||||
			baseDomain = "headscale.net" // does not really matter when MagicDNS is not enabled
 | 
								baseDomain = "headscale.net" // does not really matter when MagicDNS is not enabled
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		return dnsConfig, baseDomain
 | 
							return dnsConfig, baseDomain
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user