Update net.cpp

Fixed net.cpp