mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-07-23 19:42:57 +03:00
GetCookiePath util function
This commit is contained in:
parent
bee5c54127
commit
38e4f5cbec
4 changed files with 12 additions and 16 deletions
|
@ -854,3 +854,11 @@ func ConcatMultipleSlices(slices ...[]byte) []byte {
|
|||
|
||||
return result
|
||||
}
|
||||
|
||||
func GetCookiePath() string {
|
||||
cookiePath := BasePath
|
||||
if cookiePath == "" {
|
||||
cookiePath = "/"
|
||||
}
|
||||
return cookiePath
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue