macOS: remove mobile network tweeks

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld
2019-01-22 13:11:28 +01:00
parent 557b093232
commit 668c4a475c
4 changed files with 22 additions and 2 deletions
+5
View File
@@ -68,6 +68,11 @@ func init() {
}()
}
//export wgEnableRoaming
func wgEnableRoaming(enabled bool) {
roamingDisabled = !enabled
}
//export wgSetLogger
func wgSetLogger(loggerFn uintptr) {
loggerFunc = unsafe.Pointer(loggerFn)
+2
View File
@@ -8,9 +8,11 @@
#include <sys/types.h>
#include <stdint.h>
#include <stdbool.h>
typedef struct { const char *p; size_t n; } gostring_t;
typedef void(*logger_fn_t)(int level, const char *msg);
extern void wgEnableRoaming(bool enabled);
extern void wgSetLogger(logger_fn_t logger_fn);
extern int wgTurnOn(gostring_t settings, int32_t tun_fd);
extern void wgTurnOff(int handle);