Skip to content

Commit

Permalink
feat:print protocol version on booting
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed Sep 11, 2021
1 parent 6ca33f7 commit f39715b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ db.database=esnd
root.mask=changeMe`

func main() {
util.SaySub("Main", "Protocol Version:"+strconv.Itoa(util.ProtocolVersion))
configName := "config/esnd.conf"
if len(os.Args) == 1 {

Expand Down
2 changes: 1 addition & 1 deletion src/util/Const.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ package util

var DebugMode = false

const ProtocolVersion = 1006 //0.8
const ProtocolVersion = 1100 //0.9

0 comments on commit f39715b

Please sign in to comment.