File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ func (c *Config) LoadFromFile(filename string) error {
138138 return err
139139 }
140140
141- if ! filepath .IsAbs (c .DbPath ) {
141+ if c . DbPath != "" && ! filepath .IsAbs (c .DbPath ) {
142142 path , err := filepath .Abs (
143143 filepath .Join (filepath .Dir (filename ), c .DbPath ))
144144 if err != nil {
@@ -147,15 +147,15 @@ func (c *Config) LoadFromFile(filename string) error {
147147 c .DbPath = path
148148 }
149149
150- if ! filepath .IsAbs (c .FullCertFilename ) {
150+ if c . FullCertFilename != "" && ! filepath .IsAbs (c .FullCertFilename ) {
151151 path , err := filepath .Abs (
152152 filepath .Join (filepath .Dir (filename ), c .FullCertFilename ))
153153 if err != nil {
154154 return err
155155 }
156156 c .FullCertFilename = path
157157 }
158- if ! filepath .IsAbs (c .PrivCertFilename ) {
158+ if c . PrivCertFilename != "" && ! filepath .IsAbs (c .PrivCertFilename ) {
159159 path , err := filepath .Abs (
160160 filepath .Join (filepath .Dir (filename ), c .PrivCertFilename ))
161161 if err != nil {
You can’t perform that action at this time.
0 commit comments