@@ -140,8 +140,8 @@ func Run(config Config, args []string) error {
140
140
HTTPSPort : 8043 ,
141
141
}
142
142
143
- // Create network namespace instance
144
- networkInstance , err := namespace .New (nsConfig , logger )
143
+ // Create commander
144
+ commander , err := namespace .New (nsConfig , logger )
145
145
if err != nil {
146
146
logger .Error ("Failed to create network namespace" , "error" , err )
147
147
return fmt .Errorf ("failed to create network namespace: %v" , err )
@@ -176,13 +176,13 @@ func Run(config Config, args []string) error {
176
176
177
177
// Set standard CA certificate environment variables for common tools
178
178
// This makes tools like curl, git, etc. trust our dynamically generated CA
179
- networkInstance .SetEnv ("SSL_CERT_FILE" , caCertPath ) // OpenSSL/LibreSSL-based tools
180
- networkInstance .SetEnv ("SSL_CERT_DIR" , configDir ) // OpenSSL certificate directory
181
- networkInstance .SetEnv ("CURL_CA_BUNDLE" , caCertPath ) // curl
182
- networkInstance .SetEnv ("GIT_SSL_CAINFO" , caCertPath ) // Git
183
- networkInstance .SetEnv ("REQUESTS_CA_BUNDLE" , caCertPath ) // Python requests
184
- networkInstance .SetEnv ("NODE_EXTRA_CA_CERTS" , caCertPath ) // Node.js
185
- networkInstance .SetEnv ("JAIL_CA_CERT" , string (caCertPEM )) // Keep for backward compatibility
179
+ commander .SetEnv ("SSL_CERT_FILE" , caCertPath ) // OpenSSL/LibreSSL-based tools
180
+ commander .SetEnv ("SSL_CERT_DIR" , configDir ) // OpenSSL certificate directory
181
+ commander .SetEnv ("CURL_CA_BUNDLE" , caCertPath ) // curl
182
+ commander .SetEnv ("GIT_SSL_CAINFO" , caCertPath ) // Git
183
+ commander .SetEnv ("REQUESTS_CA_BUNDLE" , caCertPath ) // Python requests
184
+ commander .SetEnv ("NODE_EXTRA_CA_CERTS" , caCertPath ) // Node.js
185
+ commander .SetEnv ("JAIL_CA_CERT" , string (caCertPEM )) // Keep for backward compatibility
186
186
}
187
187
188
188
// Create proxy server
@@ -199,9 +199,9 @@ func Run(config Config, args []string) error {
199
199
200
200
// Create jail configuration with constructed dependencies
201
201
jailConfig := jail.Config {
202
- CommandExecutor : networkInstance ,
203
- ProxyServer : proxyServer ,
204
- Logger : logger ,
202
+ Commander : commander ,
203
+ ProxyServer : proxyServer ,
204
+ Logger : logger ,
205
205
}
206
206
207
207
// Create jail instance
0 commit comments