break: rename ServerMessage.GoTomatoVersion
-> .ProtocolVersion
This commit is contained in:
parent
16bc946a30
commit
0180aea8c1
2 changed files with 3 additions and 3 deletions
|
@ -21,10 +21,10 @@ func Start() {
|
|||
showVersionFlag := flag.Bool("version", false, "Output version")
|
||||
flag.Parse()
|
||||
|
||||
shared.Message.GoTomatoVersion = strings.Split(metadata.GoTomatoVersion, ".")[0]
|
||||
shared.Message.ProtocolVersion = strings.Split(metadata.GoTomatoVersion, ".")[0]
|
||||
if *showVersionFlag {
|
||||
fmt.Printf("App-Version: %s\n", metadata.GoTomatoVersion)
|
||||
fmt.Printf("Protocol-Version: %s\n", shared.Message.GoTomatoVersion)
|
||||
fmt.Printf("Protocol-Version: %s\n", shared.Message.ProtocolVersion)
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue