Skip to content

Commit 99e50e0

Browse files
committed
fix(config): load config
1 parent 0136e53 commit 99e50e0

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

cmd/main/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
package main
22

33
import (
4+
"goisolator/internal/config"
45
"goisolator/internal/docker"
56
)
67

78
func main() {
9+
config.GetConfig()
10+
811
for {
912
docker.StartListener()
1013
}

internal/docker/isolator.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ func NetworkAtoB(a, b string) error {
110110
Attachable: true,
111111
Labels: map[string]string{
112112
"goisolator": "true",
113-
"goisolator.a": a,
114-
"goisolator.b": b,
113+
"goisolator.a": ContainerName(a),
114+
"goisolator.b": ContainerName(b),
115115
},
116116
})
117117
if err != nil {

0 commit comments

Comments
 (0)