Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions log.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ static void fprint_timestamp(

static void stderr_msg(const char *file, int line, const char *func, int priority, const char *message, const char *appendix)
{
#ifndef __ANDROID__
fprint_timestamp(stderr, file, line, func, priority, message, appendix);
#endif
}

static FILE *logfile = NULL;
Expand Down
4 changes: 4 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,21 @@
extern app_subsys redsocks_subsys;
extern app_subsys debug_subsys;
extern app_subsys base_subsys;
#ifndef __ANDROID__
extern app_subsys redudp_subsys;
extern app_subsys dnstc_subsys;
#endif

app_subsys *subsystems[] = {
&redsocks_subsys,
#ifdef DBG_BUILD
&debug_subsys,
#endif
&base_subsys,
#ifndef __ANDROID__
&redudp_subsys,
&dnstc_subsys,
#endif
};

static const char *confname = "redsocks.conf";
Expand Down
2 changes: 1 addition & 1 deletion redsocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@ static int redsocks_init_instance(redsocks_instance *instance)
int on = 1;
int fd = -1;

fd = socket(AF_INET, SOCK_STREAM, 0);
fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
if (fd == -1) {
log_errno(LOG_ERR, "socket");
goto fail;
Expand Down
2 changes: 1 addition & 1 deletion version.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef VERSION_H_SUN_NOV_27_03_22_30_2011
#define VERSION_H_SUN_NOV_27_03_22_30_2011

extern const char* redsocks_version;
const char* redsocks_version = "SUN_NOV_27_03_22_30_2011";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this change?


#endif // VERSION_H_SUN_NOV_27_03_22_30_2011