diff --git a/src/includeobfs.h b/src/includeobfs.h new file mode 100644 index 0000000..931beb0 --- /dev/null +++ b/src/includeobfs.h @@ -0,0 +1 @@ +#include "obfs/obfs.c" diff --git a/src/local.c b/src/local.c index e339970..17b1268 100644 --- a/src/local.c +++ b/src/local.c @@ -101,7 +101,7 @@ ev_tstamp last = 0; char *prefix; #endif -#include "obfs.c" // I don't want to modify makefile +#include "includeobfs.h" // I don't want to modify makefile static int acl = 0; static int mode = TCP_ONLY; diff --git a/src/local.h b/src/local.h index 9e63cf9..fec4522 100644 --- a/src/local.h +++ b/src/local.h @@ -27,7 +27,7 @@ #include #include "encrypt.h" -#include "obfs.h" +#include "obfs/obfs.h" #include "jconf.h" #include "protocol.h" diff --git a/src/redir.c b/src/redir.c index 1b6ec57..c1e7c2c 100644 --- a/src/redir.c +++ b/src/redir.c @@ -71,7 +71,7 @@ #define IP6T_SO_ORIGINAL_DST 80 #endif -#include "obfs.c" // I don't want to modify makefile +#include "includeobfs.h" // I don't want to modify makefile static void accept_cb(EV_P_ ev_io *w, int revents); static void server_recv_cb(EV_P_ ev_io *w, int revents); diff --git a/src/redir.h b/src/redir.h index 0303f88..15f6b37 100644 --- a/src/redir.h +++ b/src/redir.h @@ -25,7 +25,7 @@ #include #include "encrypt.h" -#include "obfs.h" +#include "obfs/obfs.h" #include "jconf.h" typedef struct listen_ctx { diff --git a/src/tunnel.c b/src/tunnel.c index d95b016..74306d5 100644 --- a/src/tunnel.c +++ b/src/tunnel.c @@ -71,7 +71,7 @@ #define BUF_SIZE 2048 #endif -#include "obfs.c" // I don't want to modify makefile +#include "includeobfs.h" // I don't want to modify makefile static void accept_cb(EV_P_ ev_io *w, int revents); static void server_recv_cb(EV_P_ ev_io *w, int revents); diff --git a/src/tunnel.h b/src/tunnel.h index 3f74f55..0dfe657 100644 --- a/src/tunnel.h +++ b/src/tunnel.h @@ -25,7 +25,7 @@ #include #include "encrypt.h" -#include "obfs.h" +#include "obfs/obfs.h" #include "jconf.h" #include "common.h" diff --git a/src/udprelay.h b/src/udprelay.h index 0e7763f..57df205 100644 --- a/src/udprelay.h +++ b/src/udprelay.h @@ -28,7 +28,7 @@ #include "encrypt.h" #include "jconf.h" -#include "obfs.h" +#include "obfs/obfs.h" #ifdef MODULE_REMOTE #include "resolv.h"