Skip to content

Commit 7aa0ee0

Browse files
author
lxd
committed
Add one more line murmur to README
1 parent 8141f30 commit 7aa0ee0

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ This code serves as a VPN server for [NE PacketTunnel Illustration](), everythin
44

55
Inspired by [simpletun](http://backreference.org/2010/03/26/tuntap-interface-tutorial/), [mptun](https://github.com/cloudwu/mptun) and [ShadowVPN](https://github.com/clowwindy/ShadowVPN).
66

7+
8+
Usage & Configuration
9+
=====================
10+
Just compile and run, all configurations are at the beginning of source code `vpn.c` as C `#define` macros.
11+
12+
713
License
814
=======
915
The MIT License (MIT)

vpn.c

+6
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,19 @@
1313
#include <linux/if.h>
1414
#include <linux/if_tun.h>
1515

16+
/*
17+
* The following lines serve as configurations
18+
* Uncomment first 2 lines to run as vpn client
19+
*/
20+
1621
// #define AS_CLIENT YES
1722
// #define SERVER_HOST ""
1823

1924
#define PORT 54345
2025
#define MTU 1400
2126
#define BIND_HOST "0.0.0.0"
2227

28+
2329
static int max(int a, int b) {
2430
return a > b ? a : b;
2531
}

0 commit comments

Comments
 (0)