Skip to content

Commit

Permalink
obfs: fix derp
Browse files Browse the repository at this point in the history
Signed-off-by: hexian000 <[email protected]>
  • Loading branch information
hexian000 committed Jan 6, 2024
1 parent 4d10028 commit f9b42e5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"sndwnd": 256,
"rcvwnd": 256,
"nodelay": 1,
"interval": 100,
"interval": 10,
"resend": 0,
"nc": 1
},
Expand Down
2 changes: 1 addition & 1 deletion server.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"sndwnd": 256,
"rcvwnd": 256,
"nodelay": 1,
"interval": 100,
"interval": 10,
"resend": 0,
"nc": 1
},
Expand Down
3 changes: 2 additions & 1 deletion src/obfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ static bool obfs_ctx_start(

ctx->fd = fd;
void (*const obfs_read_cb)(
struct ev_loop *loop, struct ev_io *watcher, int revents) =
struct ev_loop * loop, struct ev_io * watcher, int revents) =
(s->conf->mode & MODE_CLIENT) ? obfs_client_read_cb :
obfs_server_read_cb;
struct ev_io *restrict w_read = &ctx->w_read;
Expand Down Expand Up @@ -1733,6 +1733,7 @@ static void obfs_on_ready(struct obfs_ctx *restrict ctx)
if (!is_client) {
return;
}
s->pkt.connected = true;
obfs->redial_count = 0;
server_ping(s);
}
Expand Down

0 comments on commit f9b42e5

Please sign in to comment.