cf92ac7a0c
1.Subfolders in the Config/ directory now show up as submenus. 2.Added a way to run TunSafe as a Windows Service. Foreground Mode: The service will disconnect when TunSafe closes. Background Mode: The service will stay connected in the background. No longer required to run the TunSafe client as Admin as long as the service is running. 3.New config setting [Interface].ExcludedIPs to configure IPs that should not be routed through TunSafe. 4.Can now automatically start TunSafe when Windows starts 5.New UI with tabs and graphs 6.Cache DNS queries to ensure DNS will succeed if connection fails 7.Recreate tray icon when explorer.exe restarts 8.Renamed window title to TunSafe instead of TunSafe VPN Client 9.Main window is now resizable 10.Disallow roaming endpoint when using AllowedIPs=0.0.0.0/0 Only the original endpoint is added in the routing table so this would result in an endless loop of packets. 11.Display approximate Wireguard framing overhead in stats 12.Preparations for protocol handling with multiple threads 13.Delete the routes we made when disconnecting 14.Fix error message about unable to delete a route when connecting
25 lines
729 B
C++
25 lines
729 B
C++
// SPDX-License-Identifier: AGPL-1.0-only
|
|
// Copyright (C) 2018 Ludvig Strigeus <info@tunsafe.com>. All Rights Reserved.
|
|
#pragma once
|
|
#include "tunsafe_types.h"
|
|
|
|
uint8 *base64_encode(const uint8 *input, size_t length, size_t *out_length);
|
|
bool base64_decode(uint8 *in, size_t inLen, uint8 *out, size_t *outLen);
|
|
bool IsOnlyZeros(const uint8 *data, size_t data_size);
|
|
|
|
int RunCommand(const char *fmt, ...);
|
|
typedef void Logger(const char *msg);
|
|
extern Logger *g_logger;
|
|
|
|
|
|
void *memdup(const void *p, size_t size);
|
|
char *my_strndup(const char *p, size_t size);
|
|
|
|
size_t my_strlcpy(char *dst, size_t dstsize, const char *src);
|
|
|
|
|
|
template<typename T, typename U> static inline T postinc(T&x, U v) {
|
|
T t = x;
|
|
x += v;
|
|
return t;
|
|
}
|