Skip to content

Commit

Permalink
fix the build
Browse files Browse the repository at this point in the history
  • Loading branch information
dovholuknf committed Nov 26, 2024
1 parent 392dc72 commit 75544b7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions programs/ziti-edge-tunnel/netif_driver/darwin/utun.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ struct netif_handle_s {
};

extern netif_driver utun_open(char *error, size_t error_len, const char *cidr);
extern const char* get_tun_name(netif_handle tun);

#endif //ZITI_TUNNELER_SDK_UTUN_H
1 change: 1 addition & 0 deletions programs/ziti-edge-tunnel/netif_driver/linux/tun.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ struct netif_handle_s {
};

extern netif_driver tun_open(struct uv_loop_s *loop, uint32_t tun_ip, uint32_t dns_ip, const char *cidr, char *error, size_t error_len);
extern const char* get_tun_name(netif_handle tun);

#endif //ZITI_TUNNELER_SDK_TUN_H
4 changes: 3 additions & 1 deletion programs/ziti-edge-tunnel/ziti-edge-tunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1317,13 +1317,15 @@ static void run(int argc, char *argv[]) {

//set log level in precedence: command line flag (-v/--verbose) -> env var (ZITI_LOG) -> config file
int log_level = get_log_level(configured_log_level);
log_writer log_fn = NULL;

#if _WIN32
signal(SIGINT, interrupt_handler);
log_init(global_loop_ref, log_level, ziti_log_writer); // level from config file set below
log_fn = ziti_log_writer;
remove_all_nrpt_rules(DEFAULT_EXECUTABLE_NAME, false); //remove all rules starting with ziti-edge-tunnel
#else
ziti_log_init(global_loop_ref, log_level, ziti_log_writer);
ziti_log_init(global_loop_ref, log_level, log_fn);
#endif

// generate tunnel status instance and save active state and start time
Expand Down

0 comments on commit 75544b7

Please sign in to comment.