[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
|
||||
- Add new filters for routes based on method, query strings and headers (missing UI)
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "cosmos-server",
|
||||
"version": "0.9.9",
|
||||
"version": "0.9.10",
|
||||
"description": "",
|
||||
"main": "test-server.js",
|
||||
"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>
|
||||
<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/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/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 -->
|
||||
|
|
|
@ -392,10 +392,15 @@ func CreateLinkNetwork(containerName string, container2Name string) error {
|
|||
var DebouncedNetworkCleanUp = _debounceNetworkCleanUp()
|
||||
|
||||
func NetworkCleanUp() {
|
||||
config := utils.GetMainConfig()
|
||||
|
||||
if(config.DockerConfig.SkipPruneNetwork) {
|
||||
return
|
||||
}
|
||||
|
||||
DockerNetworkLock <- true
|
||||
defer func() { <-DockerNetworkLock }()
|
||||
|
||||
config := utils.GetMainConfig()
|
||||
|
||||
utils.Log("Cleaning up orphan networks...")
|
||||
|
||||
|
@ -427,12 +432,8 @@ func NetworkCleanUp() {
|
|||
}
|
||||
|
||||
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)
|
||||
err := DockerClient.NetworkRemove(DockerContext, network.ID)
|
||||
if err != nil {
|
||||
|
@ -463,6 +464,7 @@ func NetworkCleanUp() {
|
|||
err := DockerClient.NetworkDisconnect(DockerContext, network.ID, self, true)
|
||||
if err != nil {
|
||||
utils.Error("DockerNetworkCleanupDisconnect", err)
|
||||
continue
|
||||
}
|
||||
err = DockerClient.NetworkRemove(DockerContext, network.ID)
|
||||
if err != nil {
|
||||
|
|
|
@ -118,6 +118,12 @@ func (shield *smartShieldState) isAllowedToReqest(policy utils.SmartShieldPolicy
|
|||
defer shield.Unlock()
|
||||
|
||||
ClientID := userConsumed.ClientID
|
||||
|
||||
if ClientID == "192.168.1.1" ||
|
||||
ClientID == "192.168.0.1" ||
|
||||
ClientID == "172.17.0.1" {
|
||||
return true
|
||||
}
|
||||
|
||||
nbTempBans := 0
|
||||
nbStrikes := 0
|
||||
|
|
Loading…
Reference in a new issue