Update proxy.c

implement naive back-up