12345678910111213141516171819202122232425262728293031 |
- package ssh
- import (
- "github.com/fatedier/frp/client/proxy"
- v1 "github.com/fatedier/frp/pkg/config/v1"
- )
- func createSuccessInfo(user string, pc v1.ProxyConfigurer, ps *proxy.WorkingStatus) string {
- base := pc.GetBaseConfig()
- out := "\n"
- out += "frp (via SSH) (Ctrl+C to quit)\n\n"
- out += "User: " + user + "\n"
- out += "ProxyName: " + base.Name + "\n"
- out += "Type: " + base.Type + "\n"
- out += "RemoteAddress: " + ps.RemoteAddr + "\n"
- return out
- }
|