update commands when running in supervised mode

This commit is contained in:
A.Unger committed 2021-03-10 11:10:46 +01:00
1 parent 25909d5923
commit 4e37d4a2f6
72 files changed
+1547 -803

No files matched your search

+3
View File
@@ -122,6 +122,9 @@ type SutureService struct {
func NewSutureService(ctx context.Context, cfg *ociscfg.Config) suture.Service {
sctx, cancel := context.WithCancel(ctx)
cfg.Proxy.Context = sctx
if cfg.Mode == 0 {
cfg.Proxy.Supervised = true
}
return SutureService{
ctx: sctx,
cancel: cancel,