forked from mirrors/amnezia-wg-easy
		
	Import json configurations with no PreShared-Key (#763)
Thank you @t-oster!
This commit is contained in:
		
						commit
						3a4564a508
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -110,8 +110,8 @@ PostDown = ${WG_POST_DOWN}
 | 
			
		|||
# Client: ${client.name} (${clientId})
 | 
			
		||||
[Peer]
 | 
			
		||||
PublicKey = ${client.publicKey}
 | 
			
		||||
PresharedKey = ${client.preSharedKey}
 | 
			
		||||
AllowedIPs = ${client.address}/32`;
 | 
			
		||||
${client.preSharedKey ? `PresharedKey = ${client.preSharedKey}\n` : ''
 | 
			
		||||
}AllowedIPs = ${client.address}/32`;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    debug('Config saving...');
 | 
			
		||||
| 
						 | 
				
			
			@ -204,8 +204,8 @@ ${WG_MTU ? `MTU = ${WG_MTU}\n` : ''}\
 | 
			
		|||
 | 
			
		||||
[Peer]
 | 
			
		||||
PublicKey = ${config.server.publicKey}
 | 
			
		||||
PresharedKey = ${client.preSharedKey}
 | 
			
		||||
AllowedIPs = ${WG_ALLOWED_IPS}
 | 
			
		||||
${client.preSharedKey ? `PresharedKey = ${client.preSharedKey}\n` : ''
 | 
			
		||||
}AllowedIPs = ${WG_ALLOWED_IPS}
 | 
			
		||||
PersistentKeepalive = ${WG_PERSISTENT_KEEPALIVE}
 | 
			
		||||
Endpoint = ${WG_HOST}:${WG_PORT}`;
 | 
			
		||||
  }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue