소스 검색

Updated docs and use a new UDP port - 8285

Eugene Yakubovich 10 년 전
부모
커밋
d2d1b99a14
2개의 변경된 파일8개의 추가작업 그리고 8개의 파일을 삭제
  1. 7 7
      README.md
  2. 1 1
      main.go

+ 7 - 7
README.md

@@ -25,14 +25,14 @@ The value of the config should be a JSON dictionary with the following keys:
 * ```Network``` (string): IPv4 network in CIDR format to use for the entire overlay network. This
 is the only mandatory key.
 
-* ```HostSubnet``` (number): The size of the subnet allocated to each host. Defaults to 24 (i.e. /24) unless
-the Network was configured to be less than a /24 in which case it is one less than the network.
+* ```SubnetLen``` (number): The size of the subnet allocated to each host. Defaults to 24 (i.e. /24) unless
+the Network was configured to be smaller than a /24 in which case it is one less than the network.
 
-* ```FirstIP``` (string): The beginning of IP range which the subnet allocation should start with. Defaults
-to the value of Network.
+* ```SubnetMin``` (string): The beginning of IP range which the subnet allocation should start with. Defaults
+to the first subnet of Network.
 
-* ```LastIP``` (string): The end of the IP range at which the subnet allocation should end with. Defaults to
-one host-sized subnet prior to end of Network range.
+* ```SubnetMax``` (string): The end of the IP range at which the subnet allocation should end with. Defaults to
+the last subnet of Network.
 
 ## Running
 
@@ -52,7 +52,7 @@ MTU that it supports.
 -etcd-endpoint="http://127.0.0.1:4001": etcd endpoint
 -etcd-prefix="/coreos.com/network": etcd prefix
 -iface="": interface to use (IP or name) for inter-host communication. Defaults to the interface for the default route on the machine.
--port=4242: port to use for inter-node communications
+-port=8285: UDP port to use for inter-node communications
 -subnet-file="/run/kolach/subnet.env": filename where env variables (subnet and MTU values) will be written to
 -v=0: log level for V logs. Set to 1 to see messages related to data path
 ```

+ 1 - 1
main.go

@@ -18,7 +18,7 @@ import (
 )
 
 const (
-	defaultPort = 4242
+	defaultPort = 8285
 )
 
 type CmdLineOpts struct {