()
| 503 | } |
| 504 | |
| 505 | func (cfg RPCConfig) CertFile() string { |
| 506 | path := cfg.TLSCertFile |
| 507 | if filepath.IsAbs(path) { |
| 508 | return path |
| 509 | } |
| 510 | return rootify(filepath.Join(defaultConfigDir, path), cfg.RootDir) |
| 511 | } |
| 512 | |
| 513 | func (cfg RPCConfig) IsTLSEnabled() bool { |
| 514 | return cfg.TLSCertFile != "" && cfg.TLSKeyFile != "" |