mirror of https://github.com/h44z/wg-portal.git
				
				
				
			fix newlines in template
This commit is contained in:
		
							parent
							
								
									814f57d357
								
							
						
					
					
						commit
						edd09a9e13
					
				|  | @ -5,7 +5,7 @@ var ( | ||||||
| [Interface] | [Interface] | ||||||
| Address = {{ .Client.IPsStr }} | Address = {{ .Client.IPsStr }} | ||||||
| PrivateKey = {{ .Client.PrivateKey }} | PrivateKey = {{ .Client.PrivateKey }} | ||||||
| {{if .Server.DNSStr -}} | {{- if .Server.DNSStr}} | ||||||
| DNS = {{ .Server.DNSStr }} | DNS = {{ .Server.DNSStr }} | ||||||
| {{- end}} | {{- end}} | ||||||
| {{- if ne .Server.Mtu 0}} | {{- if ne .Server.Mtu 0}} | ||||||
|  | @ -14,12 +14,12 @@ MTU = {{.Server.Mtu}} | ||||||
| 
 | 
 | ||||||
| [Peer] | [Peer] | ||||||
| PublicKey = {{ .Server.PublicKey }} | PublicKey = {{ .Server.PublicKey }} | ||||||
| {{- if .Client.PresharedKey -}} | {{- if .Client.PresharedKey}} | ||||||
| PresharedKey = {{ .Client.PresharedKey }} | PresharedKey = {{ .Client.PresharedKey }} | ||||||
| {{- end -}} | {{- end}} | ||||||
| AllowedIPs = {{ .Client.AllowedIPsStr }} | AllowedIPs = {{ .Client.AllowedIPsStr }} | ||||||
| Endpoint = {{ .Server.Endpoint }} | Endpoint = {{ .Server.Endpoint }} | ||||||
| {{if and (ne .Server.PersistentKeepalive 0) (not .Client.IgnorePersistentKeepalive) -}} | {{- if and (ne .Server.PersistentKeepalive 0) (not .Client.IgnorePersistentKeepalive)}} | ||||||
| PersistentKeepalive = {{.Server.PersistentKeepalive}} | PersistentKeepalive = {{.Server.PersistentKeepalive}} | ||||||
| {{- end}} | {{- end}} | ||||||
| ` | ` | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue