瀏覽代碼

Fix devices and available typos

Signed-off-by: Kevin Darbyshire-Bryant <[email protected]>
Kevin Darbyshire-Bryant 5 年之前
父節點
當前提交
3fc23f5cf6
共有 3 個文件被更改,包括 9 次插入9 次删除
  1. 3 3
      client.cpp
  2. 3 3
      doc/README.zh-cn.md
  3. 3 3
      misc.cpp

+ 3 - 3
client.cpp

@@ -865,9 +865,9 @@ int client_event_loop()
 	}
 	if(strcmp(dev,"")==0)
 	{
-		mylog(log_info,"--dev have not been set, trying to detect automatically, avaliable deives:\n");
+		mylog(log_info,"--dev have not been set, trying to detect automatically, available devices:\n");
 
-		mylog(log_info,"avaliable deives(device name: ip address ; description):\n");
+		mylog(log_info,"available device(device name: ip address ; description):\n");
 
 		char errbuf[PCAP_ERRBUF_SIZE];
 
@@ -934,7 +934,7 @@ int client_event_loop()
 			if(cnt==0) log_bare(log_warn," [no ip found]");
 			if(d->description==0)
 			{
-				log_bare(log_warn,"; (no description avaliable)");
+				log_bare(log_warn,"; (no description available)");
 			}
 			else
 			{

+ 3 - 3
doc/README.zh-cn.md

@@ -113,10 +113,10 @@ usage:
     run as server : ./this_program -s -l server_listen_ip:server_port -r remote_address:remote_port  [options]
 
 common options,these options must be same on both side:
-    --raw-mode            <string>        avaliable values:faketcp(default),udp,icmp
+    --raw-mode            <string>        available values:faketcp(default),udp,icmp
     -k,--key              <string>        password to gen symetric key,default:"secret key"
-    --cipher-mode         <string>        avaliable values:aes128cbc(default),xor,none
-    --auth-mode           <string>        avaliable values:hmac_sha1,md5(default),crc32,simple,none
+    --cipher-mode         <string>        available values:aes128cbc(default),xor,none
+    --auth-mode           <string>        available values:hmac_sha1,md5(default),crc32,simple,none
     -a,--auto-rule                        auto add (and delete) iptables rule
     -g,--gen-rule                         generate iptables rule then exit,so that you can copy and
                                           add it manually.overrides -a

+ 3 - 3
misc.cpp

@@ -148,10 +148,10 @@ void print_help()
 	printf("    run as server : ./this_program -s -l server_listen_ip:server_port -r remote_address:remote_port  [options]\n");
 	printf("\n");
 	printf("common options,these options must be same on both side:\n");
-	printf("    --raw-mode            <string>        avaliable values:faketcp(default),udp,icmp and easy-faketcp\n");
+	printf("    --raw-mode            <string>        available values:faketcp(default),udp,icmp and easy-faketcp\n");
 	printf("    -k,--key              <string>        password to gen symetric key,default:\"secret key\"\n");
-	printf("    --cipher-mode         <string>        avaliable values:aes128cfb,aes128cbc(default),xor,none\n");
-	printf("    --auth-mode           <string>        avaliable values:hmac_sha1,md5(default),crc32,simple,none\n");
+	printf("    --cipher-mode         <string>        available values:aes128cfb,aes128cbc(default),xor,none\n");
+	printf("    --auth-mode           <string>        available values:hmac_sha1,md5(default),crc32,simple,none\n");
 	printf("    -a,--auto-rule                        auto add (and delete) iptables rule\n");
 	printf("    -g,--gen-rule                         generate iptables rule then exit,so that you can copy and\n");
 	printf("                                          add it manually.overrides -a\n");