home *** CD-ROM | disk | FTP | other *** search
- #!tcl
-
- #
- # Battle Net mappings
- #
- if {$argc == 0} {
- error {Usage: battle IPaddress|off}
- }
- set addr [lindex $argv 0]
- if {$addr == "off"} {
- exec "ppmaps delete udp 6112:6119"
- exec "umaps delete 6112:6119"
- } else {
- exec "ppmap add udp 6112:6119 $addr 6112"
- exec "umap add 6112:6119 1"
- }
-