Merge branch 'master' of https://github.com/cretz/bine
This commit is contained in:
commit
452e22de4f
|
@ -25,7 +25,7 @@ import (
|
||||||
#cgo LDFLAGS: -L${SRCDIR}/../../../../tor-static/xz/dist/lib -llzma
|
#cgo LDFLAGS: -L${SRCDIR}/../../../../tor-static/xz/dist/lib -llzma
|
||||||
#cgo LDFLAGS: -L${SRCDIR}/../../../../tor-static/zlib/dist/lib -lz
|
#cgo LDFLAGS: -L${SRCDIR}/../../../../tor-static/zlib/dist/lib -lz
|
||||||
#cgo LDFLAGS: -L${SRCDIR}/../../../../tor-static/openssl/dist/lib -lssl -lcrypto
|
#cgo LDFLAGS: -L${SRCDIR}/../../../../tor-static/openssl/dist/lib -lssl -lcrypto
|
||||||
#cgo windows LDFLAGS: -lws2_32 -lcrypt32 -lgdi32 -liphlpapi
|
#cgo windows LDFLAGS: -lws2_32 -lcrypt32 -lgdi32 -liphlpapi -Wl,-Bstatic -lpthread
|
||||||
#cgo !windows LDFLAGS: -lm
|
#cgo !windows LDFLAGS: -lm
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
@ -161,7 +161,7 @@ func Start(ctx context.Context, conf *StartConf) (*Tor, error) {
|
||||||
}
|
}
|
||||||
tor.Debugf("Created temp data directory at: %v", tor.DataDir)
|
tor.Debugf("Created temp data directory at: %v", tor.DataDir)
|
||||||
tor.DeleteDataDirOnClose = !conf.RetainTempDataDir
|
tor.DeleteDataDirOnClose = !conf.RetainTempDataDir
|
||||||
} else if err := os.MkdirAll(tor.DataDir, 0600); err != nil {
|
} else if err := os.MkdirAll(tor.DataDir, 0700); err != nil {
|
||||||
return nil, fmt.Errorf("Unable to create data dir: %v", err)
|
return nil, fmt.Errorf("Unable to create data dir: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue