Maint: minor changes to openvpn/config package
- Constructor returns concrete struct instead of interface - Rename conf to openvpnConf in openvpn loop
This commit is contained in:
@@ -11,7 +11,7 @@ type AuthWriter interface {
|
||||
}
|
||||
|
||||
// WriteAuthFile writes the OpenVPN auth file to disk with the right permissions.
|
||||
func (c *configurator) WriteAuthFile(user, password string) error {
|
||||
func (c *Configurator) WriteAuthFile(user, password string) error {
|
||||
file, err := os.Open(c.authFilePath)
|
||||
|
||||
if err != nil && !os.IsNotExist(err) {
|
||||
|
||||
Reference in New Issue
Block a user