[release] 0.9.10
This commit is contained in:
parent
59803821ef
commit
0b751ca163
|
@ -1,3 +1,8 @@
|
||||||
|
## Version 0.9.10
|
||||||
|
- Never ban gateway ips
|
||||||
|
- Prevent deleting networks if there's an error on disconnect
|
||||||
|
- Disabling network pruning now also disables cleaning up Cosmos networks
|
||||||
|
|
||||||
## Version 0.9.9
|
## Version 0.9.9
|
||||||
- Add new filters for routes based on method, query strings and headers (missing UI)
|
- Add new filters for routes based on method, query strings and headers (missing UI)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "cosmos-server",
|
"name": "cosmos-server",
|
||||||
"version": "0.9.9",
|
"version": "0.9.10",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "test-server.js",
|
"main": "test-server.js",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
<p align="center"><a href="https://github.com/zarevskaya"><img src="https://avatars.githubusercontent.com/zarevskaya" style="border-radius:48px" width="48" height="48" alt="zarev" title="zarev" /></a>
|
<p align="center"><a href="https://github.com/zarevskaya"><img src="https://avatars.githubusercontent.com/zarevskaya" style="border-radius:48px" width="48" height="48" alt="zarev" title="zarev" /></a>
|
||||||
<a href="https://github.com/DrMxrcy"><img src="https://avatars.githubusercontent.com/DrMxrcy" style="border-radius:48px" width="48" height="48" alt="null" title="null" /></a>
|
<a href="https://github.com/DrMxrcy"><img src="https://avatars.githubusercontent.com/DrMxrcy" style="border-radius:48px" width="48" height="48" alt="null" title="null" /></a>
|
||||||
<a href="https://github.com/soldier1"><img src="https://avatars.githubusercontent.com/soldier1" style="border-radius:48px" width="48" height="48" alt="null" title="null" /></a>
|
<a href="https://github.com/soldier1"><img src="https://avatars.githubusercontent.com/soldier1" style="border-radius:48px" width="48" height="48" alt="null" title="null" /></a>
|
||||||
<a href="https://github.com/LarsNorgaard"><img src="https://avatars.githubusercontent.com/LarsNorgaard" style="border-radius:48px" width="48" height="48" alt="Lars Nørgaard" title="Lars Nørgaard" /></a>
|
|
||||||
<a href="https://github.com/devcircus"><img src="https://avatars.githubusercontent.com/devcircus" style="border-radius:48px" width="48" height="48" alt="Clayton Stone" title="Clayton Stone" /></a>
|
<a href="https://github.com/devcircus"><img src="https://avatars.githubusercontent.com/devcircus" style="border-radius:48px" width="48" height="48" alt="Clayton Stone" title="Clayton Stone" /></a>
|
||||||
<a href="https://github.com/vp-en"><img src="https://avatars.githubusercontent.com/vp-en" style="border-radius:48px" width="48" height="48" alt="vp-en" title="vp-en" /></a>
|
<a href="https://github.com/vp-en"><img src="https://avatars.githubusercontent.com/vp-en" style="border-radius:48px" width="48" height="48" alt="vp-en" title="vp-en" /></a>
|
||||||
</p><!-- /sponsors -->
|
</p><!-- /sponsors -->
|
||||||
|
|
|
@ -392,10 +392,15 @@ func CreateLinkNetwork(containerName string, container2Name string) error {
|
||||||
var DebouncedNetworkCleanUp = _debounceNetworkCleanUp()
|
var DebouncedNetworkCleanUp = _debounceNetworkCleanUp()
|
||||||
|
|
||||||
func NetworkCleanUp() {
|
func NetworkCleanUp() {
|
||||||
|
config := utils.GetMainConfig()
|
||||||
|
|
||||||
|
if(config.DockerConfig.SkipPruneNetwork) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
DockerNetworkLock <- true
|
DockerNetworkLock <- true
|
||||||
defer func() { <-DockerNetworkLock }()
|
defer func() { <-DockerNetworkLock }()
|
||||||
|
|
||||||
config := utils.GetMainConfig()
|
|
||||||
|
|
||||||
utils.Log("Cleaning up orphan networks...")
|
utils.Log("Cleaning up orphan networks...")
|
||||||
|
|
||||||
|
@ -427,12 +432,8 @@ func NetworkCleanUp() {
|
||||||
}
|
}
|
||||||
|
|
||||||
utils.Debug("Ready to Check network: " + network.Name)
|
utils.Debug("Ready to Check network: " + network.Name)
|
||||||
|
|
||||||
if(config.DockerConfig.SkipPruneNetwork){
|
|
||||||
utils.Debug("Skipping network prune")
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!config.DockerConfig.SkipPruneNetwork && len(network.Containers) == 0) {
|
if(len(network.Containers) == 0) {
|
||||||
utils.Log("Removing orphan network: " + network.Name)
|
utils.Log("Removing orphan network: " + network.Name)
|
||||||
err := DockerClient.NetworkRemove(DockerContext, network.ID)
|
err := DockerClient.NetworkRemove(DockerContext, network.ID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -463,6 +464,7 @@ func NetworkCleanUp() {
|
||||||
err := DockerClient.NetworkDisconnect(DockerContext, network.ID, self, true)
|
err := DockerClient.NetworkDisconnect(DockerContext, network.ID, self, true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
utils.Error("DockerNetworkCleanupDisconnect", err)
|
utils.Error("DockerNetworkCleanupDisconnect", err)
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
err = DockerClient.NetworkRemove(DockerContext, network.ID)
|
err = DockerClient.NetworkRemove(DockerContext, network.ID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -118,6 +118,12 @@ func (shield *smartShieldState) isAllowedToReqest(policy utils.SmartShieldPolicy
|
||||||
defer shield.Unlock()
|
defer shield.Unlock()
|
||||||
|
|
||||||
ClientID := userConsumed.ClientID
|
ClientID := userConsumed.ClientID
|
||||||
|
|
||||||
|
if ClientID == "192.168.1.1" ||
|
||||||
|
ClientID == "192.168.0.1" ||
|
||||||
|
ClientID == "172.17.0.1" {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
nbTempBans := 0
|
nbTempBans := 0
|
||||||
nbStrikes := 0
|
nbStrikes := 0
|
||||||
|
|
Loading…
Reference in a new issue