chore(constants): remove and move constant paths
- Remove unused paths - Move paths to inline constants if used only once
This commit is contained in:
@@ -19,11 +19,12 @@ type PIA struct {
|
||||
|
||||
func New(servers []models.PIAServer, randSource rand.Source,
|
||||
timeNow func() time.Time) *PIA {
|
||||
const jsonPortForwardPath = "/gluetun/piaportforward.json"
|
||||
return &PIA{
|
||||
servers: servers,
|
||||
timeNow: timeNow,
|
||||
randSource: randSource,
|
||||
portForwardPath: constants.PIAPortForward,
|
||||
portForwardPath: jsonPortForwardPath,
|
||||
authFilePath: constants.OpenVPNAuthConf,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user