228d434405 
								
							 
						 
						
							
							
								
								Changed GetAllocatedIPs to use IStore  
							
							... 
							
							
							
							Previously the GetAllocatedIPs function used it's own database
connection. It now uses a pointer with the store.IStore interface to
access the DB.
Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com> 
							
						 
						
							2022-03-13 23:21:00 +00:00  
				
					
						
							
							
								 
						
							
								71ede02e1c 
								
							 
						 
						
							
							
								
								PresharedKey is now only included if set ( #141 )  
							
							... 
							
							
							
							PresharedKey is now only set in the server and client config if the key
is set and not null (or empty).
I added this feature because I was importing old config files from
clients that did not have a preshared key set. Clients can be created
without preshared keys when editing db/client/ files manually. If the
field is not set, wireguard-ui creates invalid configs by producing:
PresharedKey =
This patch remvoes this behavior and just skips the preshared key if not
set.
Co-authored-by: Khanh Ngo <k@ndk.name> 
							
						 
						
							2022-01-29 09:11:50 +01:00  
				
					
						
							
							
								 
						
							
								341f9b6a42 
								
							 
						 
						
							
							
								
								Allow passing extra allowed subnets ( #114 )  
							
							
							
						 
						
							2022-01-29 08:45:00 +01:00  
				
					
						
							
							
								 
						
							
								2d9eeb08e8 
								
							 
						 
						
							
							
								
								Make MTU and PersistentKeepalive optional ( #123 )  
							
							
							
						 
						
							2021-11-20 21:02:23 +01:00  
				
					
						
							
							
								 
						
							
								abc0f74551 
								
							 
						 
						
							
							
								
								Fix flag to disable login ( #119 )  
							
							
							
						 
						
							2021-11-12 21:17:18 +01:00  
				
					
						
							
							
								 
						
							
								59abd1506f 
								
							 
						 
						
							
							
								
								Expand env vars and flags ( #84 )  
							
							
							
						 
						
							2021-08-29 20:26:12 +02:00  
				
					
						
							
							
								 
						
							
								b7c0990dcb 
								
							 
						 
						
							
							
								
								Abstracts database storage & Status page UI ( #88 )  
							
							
							
						 
						
							2021-08-28 15:10:30 +02:00  
				
					
						
							
							
								 
						
							
								2aa042b919 
								
							 
						 
						
							
							
								
								Added UseServerDNS option for clients who do not have to use the DNS specified in the server configuration. ( #79 )  
							
							
							
						 
						
							2021-08-05 19:58:01 +02:00  
				
					
						
							
							
								 
						
							
								de0c9fd26b 
								
							 
						 
						
							
							
								
								Port forwarding for server ( #69 )  
							
							
							
						 
						
							2021-08-05 19:50:31 +02:00  
				
					
						
							
							
								 
						
							
								cd7f6e500a 
								
							 
						 
						
							
							
								
								Edit wireguard client ( #19 )  
							
							... 
							
							
							
							* Add the ability to modify an existing client
* Update client page using Ajax 
							
						 
						
							2020-06-02 11:20:50 +07:00  
				
					
						
							
							
								 
						
							
								9617425033 
								
							 
						 
						
							
							
								
								Add preshared key in wireguard config ( #15 )  
							
							
							
						 
						
							2020-05-28 09:25:21 +07:00  
				
					
						
							
							
								 
						
							
								9a27cc366f 
								
							 
						 
						
							
							
								
								Single binary build ( #10 )  
							
							... 
							
							
							
							Single binary build
Use go rice for embedding the static files and templates to the binary file 
							
						 
						
							2020-05-21 15:51:24 +07:00  
				
					
						
							
							
								 
						
							
								5e7cfbd01f 
								
							 
						 
						
							
							
								
								Add Global Settings into DB initilization step  
							
							
							
						 
						
							2020-04-23 23:40:44 +07:00  
				
					
						
							
							
								 
						
							
								7c3cac8084 
								
							 
						 
						
							
							
								
								Add Apply Config button to save wireguard config file  
							
							
							
						 
						
							2020-04-23 09:29:44 +07:00  
				
					
						
							
							
								 
						
							
								e52ffaf686 
								
							 
						 
						
							
							
								
								Validate the client IP allocation  
							
							
							
						 
						
							2020-04-22 00:08:48 +07:00  
				
					
						
							
							
								 
						
							
								15703b9185 
								
							 
						 
						
							
							
								
								Adjustment in New Client form to have Allocation IP from suggestion API  
							
							
							
						 
						
							2020-04-21 00:26:49 +07:00  
				
					
						
							
							
								 
						
							
								85e466698f 
								
							 
						 
						
							
							
								
								Get Endpoint Address for suggestion form  
							
							
							
						 
						
							2020-04-20 16:50:50 +07:00  
				
					
						
							
							
								 
						
							
								deecd9c267 
								
							 
						 
						
							
							
								
								Remove hardcoded values in the client config generation  
							
							
							
						 
						
							2020-04-20 10:36:20 +07:00  
				
					
						
							
							
								 
						
							
								e99a5ba92b 
								
							 
						 
						
							
							
								
								Add global setting form  
							
							
							
						 
						
							2020-04-20 09:54:41 +07:00  
				
					
						
							
							
								 
						
							
								febf075f8d 
								
							 
						 
						
							
							
								
								Add Server config page  
							
							... 
							
							
							
							Handle server ip addresses input and store
TODO: Key pair form 
							
						 
						
							2020-04-19 15:50:59 +07:00  
				
					
						
							
							
								 
						
							
								7ae4dd12dd 
								
							 
						 
						
							
							
								
								Validate AllowedIPs from user input  
							
							
							
						 
						
							2020-04-19 10:46:43 +07:00  
				
					
						
							
							
								 
						
							
								c4e846ccd4 
								
							 
						 
						
							
							
								
								Generate QR code  
							
							
							
						 
						
							2020-04-18 21:42:53 +07:00