mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2026-10-31 18:21:51 +08:00
12 lines
157 B
Go
12 lines
157 B
Go
package utils
|
|
|
|
import "SamWaf/model"
|
|
|
|
func GetServerByHosts(hosts model.Hosts) string {
|
|
if hosts.Ssl == 1 {
|
|
return "https"
|
|
} else {
|
|
return "http"
|
|
}
|
|
}
|