Skip to content

Commit

Permalink
Merge pull request #6 from Amnesic-Systems/use-vsock-tunnel
Browse files Browse the repository at this point in the history
Use VSOCK tunnel by default.
  • Loading branch information
NullHypothesis authored Oct 24, 2024
2 parents b31bdb5 + 54f211c commit 99e232f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/veil/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,12 @@ func run(ctx context.Context, out io.Writer, args []string) (err error) {

// Initialize dependencies and start the service.
var attester enclave.Attester = enclave.NewNitroAttester()
var tunneler tunnel.Mechanism = tunnel.NewVSOCK()
if cfg.Testing {
attester = enclave.NewNoopAttester()
tunneler = tunnel.NewNoop()
}
service.Run(ctx, cfg, attester, tunnel.NewNoop())
service.Run(ctx, cfg, attester, tunneler)
return nil
}

Expand Down

0 comments on commit 99e232f

Please sign in to comment.