The %serverport% trigger variable now includes a transport prefix (eg, "ssl:", "tcp6:", or "ssl6:"). Thus "p4 -p %serverport%" can be used to connect to the server whether or not the server listens on IPv4 or IPv6, with or without SSL.
The 2014.1 System Admin's guide has this description about the %serverport% var.
The transport, IP address and port of the Perforce server, in the format prefix:ip_address:port.
If we are using tcp4 will the var have the format ip_address:port? Is it safe to assume that when tcp4 is used there will not be a leading colon?
We parse the %serverport% var's value with a perl regex in several of our triggers and want to be make sure the regex is constructed properly.