update gateway.cc
update gateway.cc