added travis badge
This commit is contained in:
@ -9,6 +9,8 @@ Just:
|
||||
|
||||
and it will be in the folder ./bin/
|
||||
|
||||
[](https://travis-ci.org/eyedeekay/sam-forwarder)
|
||||
|
||||
## usage
|
||||
|
||||
./bin/ephsite -host=host -port=port
|
||||
@ -21,7 +23,7 @@ For more information, [look here](USAGE.md)
|
||||
|
||||
## ini-like configuration
|
||||
|
||||
I make it parse INI-like configuration files, optionally, which allows it to
|
||||
I made it parse INI-like configuration files, optionally, which allows it to
|
||||
generate tunnels from snippets of i2pd tunnel configuration files. That's kinda
|
||||
useful. It appears to be more-or-less compatible with i2pd's tunnels.conf
|
||||
format, but it only supports the following options:
|
||||
|
@ -12,6 +12,8 @@ Just:
|
||||
|
||||
and it will be in the folder ./bin/
|
||||
|
||||
[](https://travis-ci.org/eyedeekay/sam-forwarder)
|
||||
|
||||
## usage
|
||||
|
||||
./bin/ephsite -host=host -port=port
|
||||
@ -24,7 +26,7 @@ For more information, [look here](USAGE.md)
|
||||
|
||||
## ini-like configuration
|
||||
|
||||
I make it parse INI-like configuration files, optionally, which allows it to
|
||||
I made it parse INI-like configuration files, optionally, which allows it to
|
||||
generate tunnels from snippets of i2pd tunnel configuration files. That's kinda
|
||||
useful. It appears to be more-or-less compatible with i2pd's tunnels.conf
|
||||
format, but it only supports the following options:
|
||||
@ -104,12 +106,12 @@ func main() { func main() {
|
||||
[This tiny file server taken from here and used for this example](https://gist.github.com/paulmach/7271283)
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQEzBAEBCAAdFiEEcNIGBzi++AUjrK/311wDs5teFOEFAltcepoACgkQ11wDs5te
|
||||
FOFwLAf/d5JXqpFB2G0OA2yfHa7NCr8OqHDUqzwUUvp4O6LtBP4EKrppVln4XX7h
|
||||
ElNm5gqRLfXC6eQZ5i0wNhegzY+/c2gtd5FpsAcaquaS7C6G5oH/LTD+63EbR6o9
|
||||
lKYkllzN0hbWQrR8S0dv/sfMdF8QYOoCSVVBymEZvQadI6w9YAFvhb93cwH3YfUi
|
||||
XSkVboUiO0m55x/Dkh7scaOLqil9tW7kd7Y9jr4ehLNEXUn3XIweLc49qrDz6u11
|
||||
QKtcsDPW9sCPwlp4w6E5DrWM4lKgUdLoIcnVUwi2T59KlSBEFF8isNekWNZen2ph
|
||||
Kh3uK8IyQUN25DHMwhkkCRn3NLXFDg==
|
||||
=JoJq
|
||||
iQEzBAEBCAAdFiEEcNIGBzi++AUjrK/311wDs5teFOEFAltcfdIACgkQ11wDs5te
|
||||
FOFIOggAhus7F+4hbDEC3COvJcZWKVFwRS85qtqhWDvftYy5vq4Z/v56xbCxVuzh
|
||||
eiqHm+iazwoBLGPYcDbi52KW+zQz3G2nvoNHLFG2P5i5dpFQYk8Sm6SQxffRXP2D
|
||||
URjvqFniJDXZIY2vadEe6VQvQUoMGBIspo4oyFYY/0KDtYnrkrBUJ3DN74g7Crr3
|
||||
78LCrFkR6dF0343O3s/MCJ/rbbtR1baodBCzRSHJvVArEND9nwV9TVezU0IKuYwE
|
||||
t4NdQEGUOOETg5RhDuA7hvfk+BlmtgqRW5jNm/w6UbynRYYczxZSpsYDFLvLWY43
|
||||
tcs0xZt25sMyDvg6gLx1SuOE36EugA==
|
||||
=V2kp
|
||||
-----END PGP SIGNATURE-----
|
||||
|
10
main/main.go
10
main/main.go
@ -9,7 +9,7 @@ import (
|
||||
import "github.com/eyedeekay/sam-forwarder"
|
||||
import "github.com/zieckey/goini"
|
||||
|
||||
func configParse(path string) (*ini.INI, error) {
|
||||
func configParse(path string) (*goini.INI, error) {
|
||||
ini := goini.New()
|
||||
if err := ini.ParseFile(path); err != nil {
|
||||
return nil, err
|
||||
@ -156,10 +156,14 @@ func main() {
|
||||
reduceIdleQuantity = v
|
||||
}
|
||||
if v, ok := config.GetBool("i2cp.enableBlackList"); ok {
|
||||
accessListType = "blacklist"
|
||||
if v {
|
||||
accessListType = "blacklist"
|
||||
}
|
||||
}
|
||||
if v, ok := config.GetBool("i2cp.enableAccessList"); ok {
|
||||
accessListType = "whitelist"
|
||||
if v {
|
||||
accessListType = "whitelist"
|
||||
}
|
||||
}
|
||||
if v, ok := config.Get("i2cp.accessList"); ok {
|
||||
csv := strings.Split(v, ",")
|
||||
|
Reference in New Issue
Block a user